From 6daf6964a92f3dbc687eed7ba16f293812a03404 Mon Sep 17 00:00:00 2001 From: "xiayu.lyt" Date: Wed, 4 Aug 2021 17:03:15 +0800 Subject: [PATCH] remove pattern validation from AlibabaCloudResourceTag Signed-off-by: xiayu.lyt --- config/v1/0000_10_config-operator_01_infrastructure.crd.yaml | 2 -- config/v1/types_infrastructure.go | 2 -- 2 files changed, 4 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 971cc076c2e..5fc2044bf1d 100644 --- a/config/v1/0000_10_config-operator_01_infrastructure.crd.yaml +++ b/config/v1/0000_10_config-operator_01_infrastructure.crd.yaml @@ -202,13 +202,11 @@ spec: type: string maxLength: 128 minLength: 1 - pattern: ^(?!aliyun)(?!acs:)(?!(.*https://.*))(?!(.*http://.*)).*$ Value: description: value is the value of the tag. type: string maxLength: 128 minLength: 1 - pattern: ^(?!aliyun)(?!acs:)(?!(.*https://.*))(?!(.*http://.*)).*$ aws: description: AWS contains settings specific to the Amazon Web Services infrastructure provider. type: object diff --git a/config/v1/types_infrastructure.go b/config/v1/types_infrastructure.go index d765dd81cbe..1e9591de9fb 100644 --- a/config/v1/types_infrastructure.go +++ b/config/v1/types_infrastructure.go @@ -662,14 +662,12 @@ type AlibabaCloudResourceTag struct { // +kubebuilder:validation:Required // +kubebuilder:validation:MinLength=1 // +kubebuilder:validation:MaxLength=128 - // +kubebuilder:validation:Pattern=`^(?!aliyun)(?!acs:)(?!(.*https://.*))(?!(.*http://.*)).*$` // +required Key string `json:"Key"` // value is the value of the tag. // +kubebuilder:validation:Required // +kubebuilder:validation:MinLength=1 // +kubebuilder:validation:MaxLength=128 - // +kubebuilder:validation:Pattern=`^(?!aliyun)(?!acs:)(?!(.*https://.*))(?!(.*http://.*)).*$` // +required Value string `json:"Value"` }