Skip to content

Commit

Permalink
Merge pull request #2035 from shuheiktgw/add_MinLength_validation
Browse files Browse the repository at this point in the history
Add MinLength validation to TargetGroupARN
  • Loading branch information
k8s-ci-robot authored May 28, 2021
2 parents 68f7db5 + ab912a1 commit 3913fee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/elbv2/v1beta1/targetgroupbinding_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ type TargetGroupBindingNetworking struct {
// TargetGroupBindingSpec defines the desired state of TargetGroupBinding
type TargetGroupBindingSpec struct {
// targetGroupARN is the Amazon Resource Name (ARN) for the TargetGroup.
// +kubebuilder:validation:MinLength=1
TargetGroupARN string `json:"targetGroupARN"`

// targetType is the TargetType of TargetGroup. If unspecified, it will be automatically inferred.
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/elbv2.k8s.aws_targetgroupbindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ spec:
type: object
targetGroupARN:
description: targetGroupARN is the Amazon Resource Name (ARN) for the TargetGroup.
minLength: 1
type: string
targetType:
description: targetType is the TargetType of TargetGroup. If unspecified, it will be automatically inferred.
Expand Down

0 comments on commit 3913fee

Please sign in to comment.