You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Ensure that the service cluster IP is not empty
252
254
ifs.Spec.ClusterIP=="" {
253
-
c.log("Service does not have cluster IP address: %s/%s", s.GetNamespace(), s.GetName())
255
+
slog.Info("Service does not have cluster IP address", "namespace", s.GetNamespace(), "name", s.GetName())
254
256
returnfalse
255
257
}
256
258
257
259
// This checks if the service has a LoadBalancer and that balancer has an Ingress defined
258
260
ifs.Spec.Type==corev1.ServiceTypeLoadBalancer {
259
261
// do not wait when at least 1 external IP is set
260
262
iflen(s.Spec.ExternalIPs) >0 {
261
-
c.log("Service %s/%s has external IP addresses (%v), marking as ready", s.GetNamespace(), s.GetName(), s.Spec.ExternalIPs)
263
+
slog.Info("Service has external IP addresses, marking as ready", "namespace", s.GetNamespace(), "name", s.GetName(), "externalIPs", s.Spec.ExternalIPs)
262
264
returntrue
263
265
}
264
266
265
267
ifs.Status.LoadBalancer.Ingress==nil {
266
-
c.log("Service does not have load balancer ingress IP address: %s/%s", s.GetNamespace(), s.GetName())
268
+
slog.Info("Service does not have load balancer ingress IP address", "namespace", s.GetNamespace(), "name", s.GetName())
c.log("Deployment is not ready: %s/%s. observedGeneration (%d) does not match spec generation (%d).", dep.Namespace, dep.Name, dep.Status.ObservedGeneration, dep.ObjectMeta.Generation)
291
+
slog.Info("Deployment is not ready: observedGeneration does not match spec generation",
c.log("DaemonSet is not ready: %s/%s. observedGeneration (%d) does not match spec generation (%d).", ds.Namespace, ds.Name, ds.Status.ObservedGeneration, ds.ObjectMeta.Generation)
314
+
slog.Info("DaemonSet is not ready: observedGeneration does not match spec generation",
c.log("DaemonSet is not ready: %s/%s. %d out of %d expected pods have been scheduled", ds.Namespace, ds.Name, ds.Status.UpdatedNumberScheduled, ds.Status.DesiredNumberScheduled)
329
+
slog.Info("DaemonSet is not ready: not enough pods scheduled",
c.log("StatefulSet is not ready: %s/%s. observedGeneration (%d) does not match spec generation (%d).", sts.Namespace, sts.Name, sts.Status.ObservedGeneration, sts.ObjectMeta.Generation)
402
+
slog.Info("StatefulSet is not ready: observedGeneration does not match spec generation",
c.log("StatefulSet is not ready: %s/%s. %d out of %d expected pods have been scheduled", sts.Namespace, sts.Name, sts.Status.UpdatedReplicas, expectedReplicas)
441
+
slog.Info("StatefulSet is not ready: not enough pods scheduled",
442
+
"namespace", sts.Namespace,
443
+
"name", sts.Name,
444
+
"updatedReplicas", sts.Status.UpdatedReplicas,
445
+
"expectedReplicas", expectedReplicas)
413
446
returnfalse
414
447
}
415
448
416
449
ifint(sts.Status.ReadyReplicas) !=replicas {
417
-
c.log("StatefulSet is not ready: %s/%s. %d out of %d expected pods are ready", sts.Namespace, sts.Name, sts.Status.ReadyReplicas, replicas)
450
+
slog.Info("StatefulSet is not ready: not enough pods ready",
451
+
"namespace", sts.Namespace,
452
+
"name", sts.Name,
453
+
"readyReplicas", sts.Status.ReadyReplicas,
454
+
"expectedReplicas", replicas)
418
455
returnfalse
419
456
}
420
457
// This check only makes sense when all partitions are being upgraded otherwise during a
421
458
// partitioned rolling upgrade, this condition will never evaluate to true, leading to
c.log("StatefulSet is not ready: %s/%s. currentRevision %s does not yet match updateRevision %s", sts.Namespace, sts.Name, sts.Status.CurrentRevision, sts.Status.UpdateRevision)
461
+
slog.Info("StatefulSet is not ready: currentRevision does not match updateRevision",
462
+
"namespace", sts.Namespace,
463
+
"name", sts.Name,
464
+
"currentRevision", sts.Status.CurrentRevision,
465
+
"updateRevision", sts.Status.UpdateRevision)
425
466
returnfalse
426
467
}
427
468
428
-
c.log("StatefulSet is ready: %s/%s. %d out of %d expected pods are ready", sts.Namespace, sts.Name, sts.Status.ReadyReplicas, replicas)
c.log("ReplicationController is not ready: %s/%s. observedGeneration (%d) does not match spec generation (%d).", rc.Namespace, rc.Name, rc.Status.ObservedGeneration, rc.ObjectMeta.Generation)
480
+
slog.Info("ReplicationController is not ready: observedGeneration does not match spec generation",
c.log("ReplicaSet is not ready: %s/%s. observedGeneration (%d) does not match spec generation (%d).", rs.Namespace, rs.Name, rs.Status.ObservedGeneration, rs.ObjectMeta.Generation)
493
+
slog.Info("ReplicaSet is not ready: observedGeneration does not match spec generation",
0 commit comments