Skip to content

Commit

Permalink
Merge pull request #20279 from carbonin/explicity_set_pull_policy
Browse files Browse the repository at this point in the history
Don't rely on the default value for ImagePullPolicy
  • Loading branch information
bdunne authored Jun 16, 2020
2 parents 4701b11 + f87ce5a commit 1c4e294
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/miq_worker/container_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def configure_worker_deployment(definition, replicas = 0)

if container_image_tag.include?("latest")
container[:imagePullPolicy] = "Always"
else
container[:imagePullPolicy] = "IfNotPresent"
end

container[:image] = "#{container_image_namespace}/#{container_image_name}:#{container_image_tag}"
Expand Down

0 comments on commit 1c4e294

Please sign in to comment.