Skip to content

Commit 34b24f2

Browse files
authored
fix redis pod failing to start after upgrade (#1841)
Signed-off-by: Anand Kumar Singh <anandrkskd@gmail.com>
1 parent ed25261 commit 34b24f2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

controllers/argocd/deployment.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,15 @@ func (r *ReconcileArgoCD) reconcileRedisDeployment(cr *argoproj.ArgoCD, useTLS b
616616
changed = true
617617
}
618618

619+
if !reflect.DeepEqual(deploy.Spec.Template.Spec.SecurityContext, existing.Spec.Template.Spec.SecurityContext) {
620+
existing.Spec.Template.Spec.SecurityContext = deploy.Spec.Template.Spec.SecurityContext
621+
if changed {
622+
explanation += ", "
623+
}
624+
explanation += "pod security context"
625+
changed = true
626+
}
627+
619628
if !reflect.DeepEqual(deploy.Spec.Template.Spec.ServiceAccountName, existing.Spec.Template.Spec.ServiceAccountName) {
620629
existing.Spec.Template.Spec.ServiceAccountName = deploy.Spec.Template.Spec.ServiceAccountName
621630
if changed {

0 commit comments

Comments
 (0)