From 3965fb2c667ba2debf1c284f7b81eaed0fff244a Mon Sep 17 00:00:00 2001 From: Kenny Woodson Date: Fri, 17 Dec 2021 12:39:03 -0500 Subject: [PATCH] Alibaba infrastructure config: Updating kube validation on optional string --- config/v1/0000_10_config-operator_01_infrastructure.crd.yaml | 2 +- config/v1/types_infrastructure.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/v1/0000_10_config-operator_01_infrastructure.crd.yaml b/config/v1/0000_10_config-operator_01_infrastructure.crd.yaml index 60b30a86562..6be6c681292 100644 --- a/config/v1/0000_10_config-operator_01_infrastructure.crd.yaml +++ b/config/v1/0000_10_config-operator_01_infrastructure.crd.yaml @@ -210,7 +210,7 @@ spec: resourceGroupID: description: resourceGroupID is the ID of the resource group for the cluster. type: string - pattern: ^rg-[0-9A-Za-z]+$ + pattern: ^(rg-[0-9A-Za-z]+)?$ resourceTags: description: resourceTags is a list of additional tags to apply to Alibaba Cloud resources created for the cluster. type: array diff --git a/config/v1/types_infrastructure.go b/config/v1/types_infrastructure.go index 016b1a3f9c3..fe42bec8394 100644 --- a/config/v1/types_infrastructure.go +++ b/config/v1/types_infrastructure.go @@ -665,7 +665,7 @@ type AlibabaCloudPlatformStatus struct { // +required Region string `json:"region"` // resourceGroupID is the ID of the resource group for the cluster. - // +kubebuilder:validation:Pattern=`^rg-[0-9A-Za-z]+$` + // +kubebuilder:validation:Pattern=`^(rg-[0-9A-Za-z]+)?$` // +optional ResourceGroupID string `json:"resourceGroupID,omitempty"` // resourceTags is a list of additional tags to apply to Alibaba Cloud resources created for the cluster.