Skip to content

Commit 077734c

Browse files
committed
✨: add validation to TG name field.
1 parent e1a95fb commit 077734c

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
@@ -214,6 +214,7 @@ var (
214214
// This is created first, and the ARN is then passed to the listener.
215215
type TargetGroupSpec struct {
216216
// Name of the TargetGroup. Must be unique over the same group of listeners.
217+
// +kubebuilder:validation:MaxLength=32
217218
Name string `json:"name"`
218219
// Port is the exposed port
219220
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
@@ -1427,6 +1427,7 @@ spec:
14271427
name:
14281428
description: Name of the TargetGroup. Must be unique
14291429
over the same group of listeners.
1430+
maxLength: 32
14301431
type: string
14311432
port:
14321433
description: Port is the exposed port
@@ -1646,6 +1647,7 @@ spec:
16461647
name:
16471648
description: Name of the TargetGroup. Must be unique
16481649
over the same group of listeners.
1650+
maxLength: 32
16491651
type: string
16501652
port:
16511653
description: Port is the exposed port
@@ -3335,6 +3337,7 @@ spec:
33353337
name:
33363338
description: Name of the TargetGroup. Must be unique
33373339
over the same group of listeners.
3340+
maxLength: 32
33383341
type: string
33393342
port:
33403343
description: Port is the exposed port
@@ -3554,6 +3557,7 @@ spec:
35543557
name:
35553558
description: Name of the TargetGroup. Must be unique
35563559
over the same group of listeners.
3560+
maxLength: 32
35573561
type: string
35583562
port:
35593563
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
@@ -2369,6 +2369,7 @@ spec:
23692369
name:
23702370
description: Name of the TargetGroup. Must be unique
23712371
over the same group of listeners.
2372+
maxLength: 32
23722373
type: string
23732374
port:
23742375
description: Port is the exposed port
@@ -2588,6 +2589,7 @@ spec:
25882589
name:
25892590
description: Name of the TargetGroup. Must be unique
25902591
over the same group of listeners.
2592+
maxLength: 32
25912593
type: string
25922594
port:
25932595
description: Port is the exposed port

0 commit comments

Comments
 (0)