Skip to content

Commit 9060eaa

Browse files
authored
Merge pull request #4287 from Skarlso/fix-field-validation-for-tcp
fix: correct the enum types for protocol values
2 parents 8a2e6b7 + 94c3a6b commit 9060eaa

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

api/v1beta2/network_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var (
9494
TargetGroupAttributeEnablePreserveClientIP = "preserve_client_ip.enabled"
9595
)
9696

97-
// LoadBalancerAttribute defines a set of attributes for a V2 load balancer
97+
// LoadBalancerAttribute defines a set of attributes for a V2 load balancer.
9898
type LoadBalancerAttribute string
9999

100100
var (
@@ -110,7 +110,7 @@ type TargetGroupSpec struct {
110110
Name string `json:"name"`
111111
// Port is the exposed port
112112
Port int64 `json:"port"`
113-
// +kubebuilder:validation:Enum=tcp;tls;upd
113+
// +kubebuilder:validation:Enum=tcp;tls;udp;TCP;TLS;UDP
114114
Protocol ELBProtocol `json:"protocol"`
115115
VpcID string `json:"vpcId"`
116116
// HealthCheck is the elb health check associated with the load balancer.

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,10 @@ spec:
12131213
enum:
12141214
- tcp
12151215
- tls
1216-
- upd
1216+
- udp
1217+
- TCP
1218+
- TLS
1219+
- UDP
12171220
type: string
12181221
targetGroupHealthCheck:
12191222
description: HealthCheck is the elb health check
@@ -2639,7 +2642,10 @@ spec:
26392642
enum:
26402643
- tcp
26412644
- tls
2642-
- upd
2645+
- udp
2646+
- TCP
2647+
- TLS
2648+
- UDP
26432649
type: string
26442650
targetGroupHealthCheck:
26452651
description: HealthCheck is the elb health check

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,10 @@ spec:
16771677
enum:
16781678
- tcp
16791679
- tls
1680-
- upd
1680+
- udp
1681+
- TCP
1682+
- TLS
1683+
- UDP
16811684
type: string
16821685
targetGroupHealthCheck:
16831686
description: HealthCheck is the elb health check

0 commit comments

Comments
 (0)