Skip to content

Commit

Permalink
Merge pull request #314 from openshift-cherrypick-robot/cherry-pick-3…
Browse files Browse the repository at this point in the history
…13-to-release-4.5

[release-4.5] Bug 1845644: Ensure correct registry image
  • Loading branch information
openshift-merge-robot committed Jun 15, 2020
2 parents b1ba97f + bac967e commit eeeee27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/registry/registry.go
Expand Up @@ -153,6 +153,9 @@ func (r *registry) ensureDeployment(appRegistries []string, needServiceAccount b
if len(deployment.Spec.Template.Spec.Containers) == 0 {
deployment.Spec.Template = r.newPodTemplateSpec(registryCommand, needServiceAccount)
} else {
// Ensure that the registry image is up to date
deployment.Spec.Template.Spec.Containers[0].Image = r.image

// Update the command passed to the registry to account for packages being added and removed
// from Quay
deployment.Spec.Template.Spec.Containers[0].Command = registryCommand
Expand Down

0 comments on commit eeeee27

Please sign in to comment.