Skip to content

Commit

Permalink
fix: Handle kam image reconciliation during upgrades
Browse files Browse the repository at this point in the history
Signed-off-by: iam-veeramalla <[email protected]>
  • Loading branch information
iam-veeramalla committed Jul 12, 2023
1 parent 8d575c0 commit 6d25c32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/kam.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ func (r *ReconcileGitopsService) reconcileCLIServer(cr *pipelinesv1alpha1.Gitops
existingDeployment.Spec.Template.Spec.Containers[0].Resources = deploymentObj.Spec.Template.Spec.Containers[0].Resources
changed = true
}
if !reflect.DeepEqual(existingDeployment.Spec.Template.Spec.Containers[0].Image, deploymentObj.Spec.Template.Spec.Containers[0].Image) {
existingDeployment.Spec.Template.Spec.Containers[0].Image = deploymentObj.Spec.Template.Spec.Containers[0].Image
changed = true
}
if !reflect.DeepEqual(existingDeployment.Spec.Template.Spec.NodeSelector, deploymentObj.Spec.Template.Spec.NodeSelector) {
existingDeployment.Spec.Template.Spec.NodeSelector = deploymentObj.Spec.Template.Spec.NodeSelector
changed = true
Expand Down

0 comments on commit 6d25c32

Please sign in to comment.