feat: removes LoadBalancerIP field from service spec (#713)

Addresses #688, this commit removes the deprecated `spec.loadBalancerIP`.
With the property being set in the service, the AWS cloud controller complained and caused issues.
This commit is contained in:
Pandry
2025-03-21 07:55:12 +01:00
committed by GitHub
parent e2f4dd0dce
commit 09a5b05a9c

View File

@@ -106,9 +106,6 @@ func (r *KubernetesServiceResource) mutate(ctx context.Context, tenantControlPla
if len(tenantControlPlane.Spec.NetworkProfile.LoadBalancerSourceRanges) > 0 {
r.resource.Spec.LoadBalancerSourceRanges = tenantControlPlane.Spec.NetworkProfile.LoadBalancerSourceRanges
}
if len(address) > 0 {
r.resource.Spec.LoadBalancerIP = address
}
case kamajiv1alpha1.ServiceTypeNodePort:
r.resource.Spec.Type = corev1.ServiceTypeNodePort
r.resource.Spec.Ports[0].NodePort = tenantControlPlane.Spec.NetworkProfile.Port