Skip to content

Commit

Permalink
Merge pull request #565 from iam-veeramalla/kam-reconcile
Browse files Browse the repository at this point in the history
fix: Handle kam image reconciliation during upgrades [release 1.9]
  • Loading branch information
iam-veeramalla authored Jul 12, 2023
2 parents 8d575c0 + 6d25c32 commit 4864f64
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 4864f64

Please sign in to comment.