Skip to content

Commit 1e26584

Browse files
committed
Merge tag 'v1.88.2' into sunos-1.88
Release 1.88.2
2 parents 6de1ba2 + 912a84e commit 1e26584

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.88.1
1+
1.88.2

cmd/k8s-operator/operator_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ func TestLoadBalancerClass(t *testing.T) {
173173
},
174174
},
175175
}
176+
177+
// Perform an additional reconciliation loop here to ensure resources don't change through side effects. Mainly
178+
// to prevent infinite reconciliation
179+
expectReconciled(t, sr, "default", "test")
176180
expectEqual(t, fc, want)
177181

178182
// Turn the service back into a ClusterIP service, which should make the

cmd/k8s-operator/svc.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,10 @@ func (a *ServiceReconciler) maybeProvision(ctx context.Context, logger *zap.Suga
348348

349349
dev := devices[0]
350350
logger.Debugf("setting Service LoadBalancer status to %q, %s", dev.hostname, strings.Join(dev.ips, ", "))
351-
svc.Status.LoadBalancer.Ingress = append(svc.Status.LoadBalancer.Ingress, corev1.LoadBalancerIngress{
352-
Hostname: dev.hostname,
353-
})
351+
352+
ingress := []corev1.LoadBalancerIngress{
353+
{Hostname: dev.hostname},
354+
}
354355

355356
clusterIPAddr, err := netip.ParseAddr(svc.Spec.ClusterIP)
356357
if err != nil {
@@ -365,10 +366,11 @@ func (a *ServiceReconciler) maybeProvision(ctx context.Context, logger *zap.Suga
365366
continue
366367
}
367368
if addr.Is4() == clusterIPAddr.Is4() { // only add addresses of the same family
368-
svc.Status.LoadBalancer.Ingress = append(svc.Status.LoadBalancer.Ingress, corev1.LoadBalancerIngress{IP: ip})
369+
ingress = append(ingress, corev1.LoadBalancerIngress{IP: ip})
369370
}
370371
}
371372

373+
svc.Status.LoadBalancer.Ingress = ingress
372374
tsoperator.SetServiceCondition(svc, tsapi.ProxyReady, metav1.ConditionTrue, reasonProxyCreated, reasonProxyCreated, a.clock, logger)
373375
return nil
374376
}

0 commit comments

Comments
 (0)