diff --git a/apis/elbv2/v1beta1/targetgroupbinding_types.go b/apis/elbv2/v1beta1/targetgroupbinding_types.go index 4275bdbf4..7d5026218 100644 --- a/apis/elbv2/v1beta1/targetgroupbinding_types.go +++ b/apis/elbv2/v1beta1/targetgroupbinding_types.go @@ -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. diff --git a/config/crd/bases/elbv2.k8s.aws_targetgroupbindings.yaml b/config/crd/bases/elbv2.k8s.aws_targetgroupbindings.yaml index 018293426..6a7160053 100644 --- a/config/crd/bases/elbv2.k8s.aws_targetgroupbindings.yaml +++ b/config/crd/bases/elbv2.k8s.aws_targetgroupbindings.yaml @@ -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.