From 94c3a6b9e91849b3d8d0318a7aea6fd2838417c9 Mon Sep 17 00:00:00 2001 From: Gergely Brautigam <182850+Skarlso@users.noreply.github.com> Date: Tue, 23 May 2023 13:46:55 +0200 Subject: [PATCH] fix: correct the enum types for protocol values --- api/v1beta2/network_types.go | 4 ++-- ...plane.cluster.x-k8s.io_awsmanagedcontrolplanes.yaml | 10 ++++++++-- .../infrastructure.cluster.x-k8s.io_awsclusters.yaml | 5 ++++- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/api/v1beta2/network_types.go b/api/v1beta2/network_types.go index d96704f6d8..7e4a6b46b1 100644 --- a/api/v1beta2/network_types.go +++ b/api/v1beta2/network_types.go @@ -94,7 +94,7 @@ var ( TargetGroupAttributeEnablePreserveClientIP = "preserve_client_ip.enabled" ) -// LoadBalancerAttribute defines a set of attributes for a V2 load balancer +// LoadBalancerAttribute defines a set of attributes for a V2 load balancer. type LoadBalancerAttribute string var ( @@ -110,7 +110,7 @@ type TargetGroupSpec struct { Name string `json:"name"` // Port is the exposed port Port int64 `json:"port"` - // +kubebuilder:validation:Enum=tcp;tls;upd + // +kubebuilder:validation:Enum=tcp;tls;udp;TCP;TLS;UDP Protocol ELBProtocol `json:"protocol"` VpcID string `json:"vpcId"` // HealthCheck is the elb health check associated with the load balancer. 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 b7b963cbc5..ae6e869a15 100644 --- a/config/crd/bases/controlplane.cluster.x-k8s.io_awsmanagedcontrolplanes.yaml +++ b/config/crd/bases/controlplane.cluster.x-k8s.io_awsmanagedcontrolplanes.yaml @@ -1213,7 +1213,10 @@ spec: enum: - tcp - tls - - upd + - udp + - TCP + - TLS + - UDP type: string targetGroupHealthCheck: description: HealthCheck is the elb health check @@ -2639,7 +2642,10 @@ spec: enum: - tcp - tls - - upd + - udp + - TCP + - TLS + - UDP type: string targetGroupHealthCheck: description: HealthCheck is the elb health check 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 6aa71241f5..a8b56d5dfb 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_awsclusters.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_awsclusters.yaml @@ -1677,7 +1677,10 @@ spec: enum: - tcp - tls - - upd + - udp + - TCP + - TLS + - UDP type: string targetGroupHealthCheck: description: HealthCheck is the elb health check