diff --git a/controllers/argocd/image_updater.go b/controllers/argocd/image_updater.go index 870578f71..9aa2013da 100644 --- a/controllers/argocd/image_updater.go +++ b/controllers/argocd/image_updater.go @@ -422,6 +422,18 @@ func (r *ReconcileArgoCD) reconcileImageUpdaterDeployment(cr *argoproj.ArgoCD, s InitialDelaySeconds: 15, PeriodSeconds: 20, }, + ReadinessProbe: &corev1.Probe{ + ProbeHandler: corev1.ProbeHandler{ + HTTPGet: &corev1.HTTPGetAction{ + Path: "/readyz", + Port: intstr.IntOrString{ + IntVal: int32(8081), + }, + }, + }, + InitialDelaySeconds: 5, + PeriodSeconds: 10, + }, SecurityContext: argoutil.DefaultSecurityContext(), VolumeMounts: []corev1.VolumeMount{ { diff --git a/controllers/argocd/image_updater_test.go b/controllers/argocd/image_updater_test.go index ea70ab391..205137d55 100644 --- a/controllers/argocd/image_updater_test.go +++ b/controllers/argocd/image_updater_test.go @@ -292,6 +292,18 @@ func TestReconcileImageUpdater_CreateDeployments(t *testing.T) { InitialDelaySeconds: 15, PeriodSeconds: 20, }, + ReadinessProbe: &v1.Probe{ + ProbeHandler: v1.ProbeHandler{ + HTTPGet: &v1.HTTPGetAction{ + Path: "/readyz", + Port: intstr.IntOrString{ + IntVal: int32(8081), + }, + }, + }, + InitialDelaySeconds: 5, + PeriodSeconds: 10, + }, }} if diff := cmp.Diff(want, deployment.Spec.Template.Spec.Containers); diff != "" {