Skip to content

Commit

Permalink
remove pattern validation from AlibabaCloudResourceTag
Browse files Browse the repository at this point in the history
Signed-off-by: xiayu.lyt <xiayu.lyt@alibaba-inc.com>
  • Loading branch information
Lyt99 committed Sep 7, 2021
1 parent 6bd79e4 commit 6daf696
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions config/v1/0000_10_config-operator_01_infrastructure.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions config/v1/types_infrastructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down

0 comments on commit 6daf696

Please sign in to comment.