File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -472,9 +472,12 @@ func (r *ReconcileGitopsService) reconcileDefaultArgoCDInstance(instance *pipeli
472
472
changed = true
473
473
}
474
474
475
- if ! reflect .DeepEqual (existingArgoCD .Spec .NodePlacement , defaultArgoCDInstance .Spec .NodePlacement ) {
476
- existingArgoCD .Spec .NodePlacement = defaultArgoCDInstance .Spec .NodePlacement
477
- changed = true
475
+ // if user is patching nodePlacement through GitopsService CR, then existingArgoCD NodePlacement is updated.
476
+ if defaultArgoCDInstance .Spec .NodePlacement != nil {
477
+ if ! reflect .DeepEqual (existingArgoCD .Spec .NodePlacement , defaultArgoCDInstance .Spec .NodePlacement ) {
478
+ existingArgoCD .Spec .NodePlacement = defaultArgoCDInstance .Spec .NodePlacement
479
+ changed = true
480
+ }
478
481
}
479
482
480
483
if changed {
You can’t perform that action at this time.
0 commit comments