From d0d3022c8c34f58f2c51b11b711c195b1664d733 Mon Sep 17 00:00:00 2001 From: LavenderQAQ <1254297317@qq.com> Date: Tue, 21 Feb 2023 20:52:19 +0800 Subject: [PATCH] add deprecated version warning --- api/v1alpha1/edgex_types.go | 1 + config/crd/bases/device.openyurt.io_edgexes.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/api/v1alpha1/edgex_types.go b/api/v1alpha1/edgex_types.go index 894cf4f..30876ac 100644 --- a/api/v1alpha1/edgex_types.go +++ b/api/v1alpha1/edgex_types.go @@ -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 { diff --git a/config/crd/bases/device.openyurt.io_edgexes.yaml b/config/crd/bases/device.openyurt.io_edgexes.yaml index b190157..2f2e01f 100644 --- a/config/crd/bases/device.openyurt.io_edgexes.yaml +++ b/config/crd/bases/device.openyurt.io_edgexes.yaml @@ -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: