Skip to content

Commit

Permalink
✨: add validation to TG name field.
Browse files Browse the repository at this point in the history
  • Loading branch information
r4f4 committed Apr 23, 2024
1 parent e1a95fb commit 077734c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1beta2/network_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 077734c

Please sign in to comment.