Skip to content

Commit

Permalink
Dashboard loader: use exit code 1 instead of 3
Browse files Browse the repository at this point in the history
1 is slightly better than one, since 1 is usually used as a generic "the
program had an error" exit code.

Signed-off-by: Jacob Baungard Hansen <[email protected]>
  • Loading branch information
jacobbaungard committed Oct 8, 2024
1 parent 8307911 commit a3e0b71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loaders/dashboards/pkg/controller/dashboard_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func newKubeInformer(coreClient corev1client.CoreV1Interface) (cache.SharedIndex
break
} else if times == dashboardRetry {
klog.Errorf("dashboard: %s could not be created after retrying %v times", obj.(*corev1.ConfigMap).Name, dashboardRetry)
os.Exit(3)
os.Exit(1)
}

klog.Warningf("creation of dashboard: %v failed. Retrying in 10s. Error: %v", obj.(*corev1.ConfigMap).Name, err)
Expand All @@ -145,7 +145,7 @@ func newKubeInformer(coreClient corev1client.CoreV1Interface) (cache.SharedIndex
break
} else if times == dashboardRetry {
klog.Errorf("dashboard: %s could not be created after retrying %v times", new.(*corev1.ConfigMap).Name, dashboardRetry)
os.Exit(3)
os.Exit(1)
}

klog.Warningf("updating of dashboard: %v failed. Retrying in 10s. Error: %v", new.(*corev1.ConfigMap).Name, err)
Expand Down

0 comments on commit a3e0b71

Please sign in to comment.