Skip to content

Commit d4ef52f

Browse files
authored
Set PublishNotReadyAddresses true for cluster wide Service (#137)
1 parent 8c63109 commit d4ef52f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

controllers/cluster_controller.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ func (r *ClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct
176176
svc.Name = cluster.GetName()
177177
svc.Namespace = cluster.GetNamespace()
178178
svc.Spec = corev1.ServiceSpec{
179-
Selector: cluster.Spec.Selector.MatchLabels,
180-
ClusterIP: "None",
179+
PublishNotReadyAddresses: true,
180+
Selector: cluster.Spec.Selector.MatchLabels,
181+
ClusterIP: "None",
181182
Ports: []corev1.ServicePort{
182183
{
183184
Name: "app",

0 commit comments

Comments
 (0)