Skip to content

Commit 7849351

Browse files
authored
Merge pull request #3913 from Skarlso/fix_upgrade_nlb
Make the LoadBalancerType optional in the Status
2 parents 820cce2 + cc51a15 commit 7849351

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

api/v1beta2/network_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ type LoadBalancer struct {
169169

170170
// LoadBalancerType sets the type for a load balancer. The default type is classic.
171171
// +kubebuilder:validation:Enum:=classic;elb;alb;nlb
172-
LoadBalancerType LoadBalancerType `json:"loadBalancerType"`
172+
LoadBalancerType LoadBalancerType `json:"loadBalancerType,omitempty"`
173173
}
174174

175175
// IsUnmanaged returns true if the Classic ELB is unmanaged.

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,8 +1290,6 @@ spec:
12901290
description: Tags is a map of tags associated with the load
12911291
balancer.
12921292
type: object
1293-
required:
1294-
- loadBalancerType
12951293
type: object
12961294
securityGroups:
12971295
additionalProperties:
@@ -2657,8 +2655,6 @@ spec:
26572655
description: Tags is a map of tags associated with the load
26582656
balancer.
26592657
type: object
2660-
required:
2661-
- loadBalancerType
26622658
type: object
26632659
securityGroups:
26642660
additionalProperties:

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,8 +1742,6 @@ spec:
17421742
description: Tags is a map of tags associated with the load
17431743
balancer.
17441744
type: object
1745-
required:
1746-
- loadBalancerType
17471745
type: object
17481746
securityGroups:
17491747
additionalProperties:

0 commit comments

Comments
 (0)