Ensure exposure of imagePullPolicy setting for initContainers
Summary
My deployment failed because the
busybox
container in the Gitaly StatefulSet doesn't let us specify an imagePullPolicy ofIfNotPresent
and we don't have a registry with all the images in the environment yet.
When used in an offline environment, or in scenarios where the cluster default is Always
, we should have a way to set the imagePullPolicy
properties for the initContainers within this project. One example, as above, is busybox
. Any case where we make use of tag: latest
will result in the default behavior of Always
because we omit this property.
Details
- No chart under
charts/gitlab/charts
that uses thegitlab.busybox.image
template includesimagePullPolicy
. - Those under
charts/xyz
do [registry, minio], but are chart-local settings. - All GitLab authored / forked charts consume the same setting for the image, but do not consume the same setting for this property.
Current behavior
Not all sub-charts have a property-based method to configure the imagePullPolicy.
Expected behavior
Existence of property-based method to configure the imagePullPolicy for all initContainers
Versions
- Chart: 7f34ca6f and previous.
Related
Edited by Jason Plum