Check ClusterIP for noneless
@@ -145,6 +145,9 @@ func (r *ReconcilePerconaXtraDBCluster) updateService(svc *corev1.Service, podSp
}
currentService.Spec.Type = *podSpec.ServiceType
case corev1.ServiceTypeLoadBalancer:
+ if currentService.Spec.ClusterIP == "None" {
+ currentService.Spec.ClusterIP = ""
+ }
currentService.Spec.Type = *podSpec.ServiceType
}
}
