Skip to content

Commit abb9593

Browse files
r4f4fad3t
authored andcommitted
✨: add validation to TG name field.
1 parent 9a52719 commit abb9593

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

api/v1beta2/network_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ var (
223223
// This is created first, and the ARN is then passed to the listener.
224224
type TargetGroupSpec struct {
225225
// Name of the TargetGroup. Must be unique over the same group of listeners.
226+
// +kubebuilder:validation:MaxLength=32
226227
Name string `json:"name"`
227228
// Port is the exposed port
228229
Port int64 `json:"port"`

config/crd/bases/controlplane.cluster.x-k8s.io_awsmanagedcontrolplanes.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,6 +1467,7 @@ spec:
14671467
name:
14681468
description: Name of the TargetGroup. Must be unique
14691469
over the same group of listeners.
1470+
maxLength: 32
14701471
type: string
14711472
port:
14721473
description: Port is the exposed port
@@ -1686,6 +1687,7 @@ spec:
16861687
name:
16871688
description: Name of the TargetGroup. Must be unique
16881689
over the same group of listeners.
1690+
maxLength: 32
16891691
type: string
16901692
port:
16911693
description: Port is the exposed port
@@ -3415,6 +3417,7 @@ spec:
34153417
name:
34163418
description: Name of the TargetGroup. Must be unique
34173419
over the same group of listeners.
3420+
maxLength: 32
34183421
type: string
34193422
port:
34203423
description: Port is the exposed port
@@ -3634,6 +3637,7 @@ spec:
36343637
name:
36353638
description: Name of the TargetGroup. Must be unique
36363639
over the same group of listeners.
3640+
maxLength: 32
36373641
type: string
36383642
port:
36393643
description: Port is the exposed port

config/crd/bases/infrastructure.cluster.x-k8s.io_awsclusters.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2413,6 +2413,7 @@ spec:
24132413
name:
24142414
description: Name of the TargetGroup. Must be unique
24152415
over the same group of listeners.
2416+
maxLength: 32
24162417
type: string
24172418
port:
24182419
description: Port is the exposed port
@@ -2632,6 +2633,7 @@ spec:
26322633
name:
26332634
description: Name of the TargetGroup. Must be unique
26342635
over the same group of listeners.
2636+
maxLength: 32
26352637
type: string
26362638
port:
26372639
description: Port is the exposed port

0 commit comments

Comments
 (0)