File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -613,6 +613,10 @@ func (r *ReconcileGitopsService) reconcileBackend(gitopsserviceNamespacedName ty
613613 found .Spec .Template .Spec .Containers [0 ].Resources = deploymentObj .Spec .Template .Spec .Containers [0 ].Resources
614614 changed = true
615615 }
616+ if ! reflect .DeepEqual (found .Spec .Template .Spec .Containers [0 ].SecurityContext , deploymentObj .Spec .Template .Spec .Containers [0 ].SecurityContext ) {
617+ found .Spec .Template .Spec .Containers [0 ].SecurityContext = deploymentObj .Spec .Template .Spec .Containers [0 ].SecurityContext
618+ changed = true
619+ }
616620 if ! reflect .DeepEqual (found .Spec .Template .Spec .NodeSelector , deploymentObj .Spec .Template .Spec .NodeSelector ) {
617621 found .Spec .Template .Spec .NodeSelector = deploymentObj .Spec .Template .Spec .NodeSelector
618622 changed = true
Original file line number Diff line number Diff line change @@ -245,6 +245,10 @@ func (r *ReconcileGitopsService) reconcileCLIServer(cr *pipelinesv1alpha1.Gitops
245245 existingDeployment .Spec .Template .Spec .SecurityContext = deploymentObj .Spec .Template .Spec .SecurityContext
246246 changed = true
247247 }
248+ if ! reflect .DeepEqual (existingDeployment .Spec .Template .Spec .Containers [0 ].SecurityContext , deploymentObj .Spec .Template .Spec .Containers [0 ].SecurityContext ) {
249+ existingDeployment .Spec .Template .Spec .Containers [0 ].SecurityContext = deploymentObj .Spec .Template .Spec .Containers [0 ].SecurityContext
250+ changed = true
251+ }
248252
249253 if changed {
250254 err = r .Client .Update (context .TODO (), existingDeployment )
You can’t perform that action at this time.
0 commit comments