From bc6fc920d3fee23b95a4862a00a68d6bd1c9bd22 Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Tue, 10 Aug 2021 18:47:00 +0200 Subject: [PATCH] fix: Tenant status enums must be capitalized --- api/v1beta1/tenant_status.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/v1beta1/tenant_status.go b/api/v1beta1/tenant_status.go index 2b99eb04..96dbff3b 100644 --- a/api/v1beta1/tenant_status.go +++ b/api/v1beta1/tenant_status.go @@ -3,18 +3,18 @@ package v1beta1 -// +kubebuilder:validation:Enum=cordoned;active +// +kubebuilder:validation:Enum=Cordoned;Active type tenantState string const ( - TenantStateActive tenantState = "active" - TenantStateCordoned tenantState = "cordoned" + TenantStateActive tenantState = "Active" + TenantStateCordoned tenantState = "Cordoned" ) // Returns the observed state of the Tenant type TenantStatus struct { - //+kubebuilder:default=active - // The operational state of the Tenant. Possible values are "active", "cordoned". + //+kubebuilder:default=Active + // The operational state of the Tenant. Possible values are "Active", "Cordoned". State tenantState `json:"state"` // How many namespaces are assigned to the Tenant. Size uint `json:"size"`