Skip to content

Allow override pullPolicy via env KUBERNETES_IMAGE_PULL_POLICY

Jan-Otto Kröpke requested to merge (removed):pullpolicy into master

What does this MR do?

Makes imagePullPolicy overwritable, if KUBERNETES_IMAGE_PULL_POLICY is defined like KUBERNETES_BEARER_TOKEN.

Why was this MR needed?

Normally the imagePullPolicy IfNotPresent should be fine. Sometimes you need to use Always, for example for floating tags.

Are there points in the code the reviewer needs to double check?

Yes please. My Go skills are fresh. I have to use some type cast. If its bad please give some hint how to resolve it.

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Tests
    • Added for this feature/bug
    • All builds are passing
  • Branch has no merge conflicts with master (if you do - rebase it please)

What are the relevant issue numbers?

Edited by Jan-Otto Kröpke

Merge request reports