Skip to content

Commit

Permalink
Merge pull request #4287 from Skarlso/fix-field-validation-for-tcp
Browse files Browse the repository at this point in the history
fix: correct the enum types for protocol values
  • Loading branch information
k8s-ci-robot authored May 23, 2023
2 parents 8a2e6b7 + 94c3a6b commit 9060eaa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/v1beta2/network_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,10 @@ spec:
enum:
- tcp
- tls
- upd
- udp
- TCP
- TLS
- UDP
type: string
targetGroupHealthCheck:
description: HealthCheck is the elb health check
Expand Down Expand Up @@ -2639,7 +2642,10 @@ spec:
enum:
- tcp
- tls
- upd
- udp
- TCP
- TLS
- UDP
type: string
targetGroupHealthCheck:
description: HealthCheck is the elb health check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,10 @@ spec:
enum:
- tcp
- tls
- upd
- udp
- TCP
- TLS
- UDP
type: string
targetGroupHealthCheck:
description: HealthCheck is the elb health check
Expand Down

0 comments on commit 9060eaa

Please sign in to comment.