Skip to content

Commit 55f6d55

Browse files
committed
feat: removes LoadBalancerIP field from service spec
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.
1 parent 899da1a commit 55f6d55

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/resources/k8s_service_resource.go

-3
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ func (r *KubernetesServiceResource) mutate(ctx context.Context, tenantControlPla
106106
if len(tenantControlPlane.Spec.NetworkProfile.LoadBalancerSourceRanges) > 0 {
107107
r.resource.Spec.LoadBalancerSourceRanges = tenantControlPlane.Spec.NetworkProfile.LoadBalancerSourceRanges
108108
}
109-
if len(address) > 0 {
110-
r.resource.Spec.LoadBalancerIP = address
111-
}
112109
case kamajiv1alpha1.ServiceTypeNodePort:
113110
r.resource.Spec.Type = corev1.ServiceTypeNodePort
114111
r.resource.Spec.Ports[0].NodePort = tenantControlPlane.Spec.NetworkProfile.Port

0 commit comments

Comments
 (0)