Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
add deprecated version warning
Browse files Browse the repository at this point in the history
  • Loading branch information
LavenderQAQ committed Feb 21, 2023
1 parent 0fe675f commit d0d3022
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/edgex_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ type EdgeXStatus struct {
//+kubebuilder:printcolumn:name="ReadyService",type="integer",JSONPath=".status.serviceReadyReplicas",description="The Ready Service Replica."
//+kubebuilder:printcolumn:name="Deployment",type="integer",JSONPath=".status.deploymentReplicas",description="The Deployment Replica."
//+kubebuilder:printcolumn:name="ReadyDeployment",type="integer",JSONPath=".status.deploymentReadyReplicas",description="The Ready Deployment Replica."
//+kubebuilder:deprecatedversion:warning="device.openyurt.io/v1alpha1 EdgeX will be deprecated in future; use device.openyurt.io/v1alpha2 EdgeX"

// EdgeX is the Schema for the edgexes API
type EdgeX struct {
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/device.openyurt.io_edgexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
jsonPath: .status.deploymentReadyReplicas
name: ReadyDeployment
type: integer
deprecated: true
deprecationWarning: device.openyurt.io/v1alpha1 EdgeX will be deprecated in future;
use device.openyurt.io/v1alpha2 EdgeX
name: v1alpha1
schema:
openAPIV3Schema:
Expand Down

0 comments on commit d0d3022

Please sign in to comment.