Skip to content

Commit eea4701

Browse files
fix ImagePullBackOff capitalization
1 parent c618d91 commit eea4701

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

controllers/pod_reconciler.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ func (r *PodReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.R
5555
log := r.Log.WithValues("pod", req.NamespacedName)
5656

5757
var pod corev1.Pod
58+
log.Info("checking if pod can be expired")
5859
if err := r.Get(ctx, req.NamespacedName, &pod); err != nil {
5960
if apierrors.IsNotFound(err) {
6061
return ctrl.Result{}, nil
@@ -133,6 +134,6 @@ func noPluralCreds(pod *corev1.Pod) bool {
133134
func waitingForPluralCreds(cs corev1.ContainerStatus) bool {
134135
return (!cs.Ready &&
135136
cs.State.Waiting != nil &&
136-
cs.State.Waiting.Reason == "ImagePullBackoff" &&
137+
cs.State.Waiting.Reason == "ImagePullBackOff" &&
137138
strings.Contains(cs.State.Waiting.Message, "dkr.plural.sh"))
138139
}

0 commit comments

Comments
 (0)