Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/healthcheck/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func microshiftServiceShouldBeOk(ctx context.Context, timeout time.Duration) (bo
}
klog.Info("microshift.service is enabled")

klog.Info("Waiting for microshift.service to be ready")
klog.Infof("Waiting %v for microshift.service to be ready", timeout)
if err := wait.PollUntilContextTimeout(ctx, time.Second, timeout, true, func(ctx context.Context) (done bool, err error) {
return systemd.IsServiceActiveAndNotFailed(ctx, "microshift.service")
}); err != nil {
Expand Down
6 changes: 3 additions & 3 deletions pkg/healthcheck/workloads.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func waitForWorkloads(ctx context.Context, timeout time.Duration, workloads map[
}

func waitForDaemonSet(ctx context.Context, client *appsclientv1.AppsV1Client, timeout time.Duration, namespace, name string) error {
klog.Infof("Waiting for daemonset/%s in %s", name, namespace)
klog.Infof("Waiting %v for daemonset/%s in %s", timeout, name, namespace)
err := wait.PollUntilContextTimeout(ctx, 10*time.Second, timeout, true, func(ctx context.Context) (done bool, err error) {
ds, err := client.DaemonSets(namespace).Get(ctx, name, v1.GetOptions{})
if err != nil {
Expand Down Expand Up @@ -91,7 +91,7 @@ func waitForDaemonSet(ctx context.Context, client *appsclientv1.AppsV1Client, ti
}

func waitForDeployment(ctx context.Context, client *appsclientv1.AppsV1Client, timeout time.Duration, namespace, name string) error {
klog.Infof("Waiting for deployment/%s in %s", name, namespace)
klog.Infof("Waiting %v for deployment/%s in %s", timeout, name, namespace)
err := wait.PollUntilContextTimeout(ctx, 10*time.Second, timeout, true, func(ctx context.Context) (done bool, err error) {
deployment, err := client.Deployments(namespace).Get(ctx, name, v1.GetOptions{})
if err != nil {
Expand Down Expand Up @@ -134,7 +134,7 @@ func waitForDeployment(ctx context.Context, client *appsclientv1.AppsV1Client, t
}

func waitForStatefulSet(ctx context.Context, client *appsclientv1.AppsV1Client, timeout time.Duration, namespace, name string) error {
klog.Infof("Waiting for statefulset/%s in %s", name, namespace)
klog.Infof("Waiting %v for statefulset/%s in %s", timeout, name, namespace)
err := wait.PollUntilContextTimeout(ctx, 10*time.Second, timeout, true, func(ctx context.Context) (done bool, err error) {
sts, err := client.StatefulSets(namespace).Get(ctx, name, v1.GetOptions{})
if err != nil {
Expand Down