Skip to content

Commit

Permalink
fix unexpected deployment hash value change (#2508)
Browse files Browse the repository at this point in the history
Signed-off-by: akihikokuroda <akihikokuroda2020@gmail.com>
  • Loading branch information
akihikokuroda committed Dec 6, 2021
1 parent ea00762 commit e064f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/install/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func (i *StrategyDeploymentInstaller) checkForDeployments(deploymentSpecs []v1al
// compare deployments to see if any need to be created/updated
existingMap := map[string]*appsv1.Deployment{}
for _, d := range existingDeployments {
existingMap[d.GetName()] = d
existingMap[d.GetName()] = d.DeepCopy()
}
for _, spec := range deploymentSpecs {
dep, exists := existingMap[spec.Name]
Expand Down

0 comments on commit e064f3b

Please sign in to comment.