diff --git a/api/v1beta2/network_types.go b/api/v1beta2/network_types.go index 9473ada579..9fa8c49625 100644 --- a/api/v1beta2/network_types.go +++ b/api/v1beta2/network_types.go @@ -214,6 +214,7 @@ var ( // This is created first, and the ARN is then passed to the listener. type TargetGroupSpec struct { // Name of the TargetGroup. Must be unique over the same group of listeners. + // +kubebuilder:validation:MaxLength=32 Name string `json:"name"` // Port is the exposed port Port int64 `json:"port"` diff --git a/config/crd/bases/controlplane.cluster.x-k8s.io_awsmanagedcontrolplanes.yaml b/config/crd/bases/controlplane.cluster.x-k8s.io_awsmanagedcontrolplanes.yaml index 78bb1590c0..d1f022172f 100644 --- a/config/crd/bases/controlplane.cluster.x-k8s.io_awsmanagedcontrolplanes.yaml +++ b/config/crd/bases/controlplane.cluster.x-k8s.io_awsmanagedcontrolplanes.yaml @@ -1427,6 +1427,7 @@ spec: name: description: Name of the TargetGroup. Must be unique over the same group of listeners. + maxLength: 32 type: string port: description: Port is the exposed port @@ -1646,6 +1647,7 @@ spec: name: description: Name of the TargetGroup. Must be unique over the same group of listeners. + maxLength: 32 type: string port: description: Port is the exposed port @@ -3335,6 +3337,7 @@ spec: name: description: Name of the TargetGroup. Must be unique over the same group of listeners. + maxLength: 32 type: string port: description: Port is the exposed port @@ -3554,6 +3557,7 @@ spec: name: description: Name of the TargetGroup. Must be unique over the same group of listeners. + maxLength: 32 type: string port: description: Port is the exposed port diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_awsclusters.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_awsclusters.yaml index 3076c85ed8..8ece520181 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_awsclusters.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_awsclusters.yaml @@ -2369,6 +2369,7 @@ spec: name: description: Name of the TargetGroup. Must be unique over the same group of listeners. + maxLength: 32 type: string port: description: Port is the exposed port @@ -2588,6 +2589,7 @@ spec: name: description: Name of the TargetGroup. Must be unique over the same group of listeners. + maxLength: 32 type: string port: description: Port is the exposed port