Always populate Load balancer type as classic if not provided by user
@@ -64,9 +64,11 @@ func SetDefaults_AWSClusterSpec(s *AWSClusterSpec) { //nolint:golint,stylecheck
if s.ControlPlaneLoadBalancer == nil {
s.ControlPlaneLoadBalancer = &AWSLoadBalancerSpec{
Scheme: &ELBSchemeInternetFacing,
- LoadBalancerType: LoadBalancerTypeClassic,
}
}
+ if s.ControlPlaneLoadBalancer.LoadBalancerType == "" {
+ s.ControlPlaneLoadBalancer.LoadBalancerType = LoadBalancerTypeClassic
+ }
}
// SetDefaults_Labels is used to default cluster scope resources for clusterctl move.
