diff --git a/controllers/license/api/v1/license_types.go b/controllers/license/api/v1/license_types.go index f9258c4abf5..7fb17dca3af 100644 --- a/controllers/license/api/v1/license_types.go +++ b/controllers/license/api/v1/license_types.go @@ -45,7 +45,8 @@ const ( // LicenseStatus defines the observed state of License type LicenseStatus struct { - // +kubebuilder:validation:Enum=Pending;Failed;Active:default=Pending + //+kubebuilder:validation:Enum=Pending;Failed;Active + //+kubebuilder:default=Pending Phase LicenseStatusPhase `json:"phase,omitempty"` } diff --git a/controllers/license/config/crd/bases/license.sealos.io_licenses.yaml b/controllers/license/config/crd/bases/license.sealos.io_licenses.yaml index ceca7c93b46..34457287eff 100644 --- a/controllers/license/config/crd/bases/license.sealos.io_licenses.yaml +++ b/controllers/license/config/crd/bases/license.sealos.io_licenses.yaml @@ -49,6 +49,11 @@ spec: description: LicenseStatus defines the observed state of License properties: phase: + default: Pending + enum: + - Pending + - Failed + - Active type: string type: object type: object diff --git a/controllers/license/deploy/manifests/deploy.yaml b/controllers/license/deploy/manifests/deploy.yaml index feb3d4823c4..22b5d40e585 100644 --- a/controllers/license/deploy/manifests/deploy.yaml +++ b/controllers/license/deploy/manifests/deploy.yaml @@ -61,6 +61,11 @@ spec: description: LicenseStatus defines the observed state of License properties: phase: + default: Pending + enum: + - Pending + - Failed + - Active type: string type: object type: object