Skip to content

Commit 3913fee

Browse files
authored
Merge pull request #2035 from shuheiktgw/add_MinLength_validation
Add MinLength validation to TargetGroupARN
2 parents 68f7db5 + ab912a1 commit 3913fee

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apis/elbv2/v1beta1/targetgroupbinding_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ type TargetGroupBindingNetworking struct {
115115
// TargetGroupBindingSpec defines the desired state of TargetGroupBinding
116116
type TargetGroupBindingSpec struct {
117117
// targetGroupARN is the Amazon Resource Name (ARN) for the TargetGroup.
118+
// +kubebuilder:validation:MinLength=1
118119
TargetGroupARN string `json:"targetGroupARN"`
119120

120121
// targetType is the TargetType of TargetGroup. If unspecified, it will be automatically inferred.

config/crd/bases/elbv2.k8s.aws_targetgroupbindings.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ spec:
294294
type: object
295295
targetGroupARN:
296296
description: targetGroupARN is the Amazon Resource Name (ARN) for the TargetGroup.
297+
minLength: 1
297298
type: string
298299
targetType:
299300
description: targetType is the TargetType of TargetGroup. If unspecified, it will be automatically inferred.

0 commit comments

Comments
 (0)