Standardize global image* under global.image.x
Proposal
Move to standardize the various global.imageXyXz under global.image.x
-
global.imagePullPolicyfromgitlab.imagePullPolicytemplate -
imagePullSecrets / image.pullSecretscurrently per chart (pullsecretstemplate).🤷 -
global.image.tagExtensionproposed in this comment thread -
global.image.?future expansion, such as ability to change the repository URLs (not image names) for all GitLab sourced images at once.
Details
Many community charts follow the pre-existing pattern from helm create output, which currently provides:
image:
repository: nginx # e.g. registry.gitlab.com/gitlab-org/build/CNG/image
tag: stable
pullPolicy: IfNotPresent
imagePullSecrets: []
I am not sure why imagePullSecrets was never a part of the image block in the first place, but it may be sourced from the layout in the K8S yaml spec, and that fact that is global :
kind: Deployment
metadata:
name: example-deployment
spec:
replicas: 1
template:
spec:
imagePullSecrets: []
---
kind: Pod
metadata:
name: example-pod
spec:
containers: []
imagePullSecrets: []
Work
- Move
global.imagePullPolicytoglobal.image.pullPolicy- deprecation to move existing setting if provided
- update
gitlab.imagePullPolicyto begitlab.image.pullPolicy, and rewrite logic to use tiered property.
- Implement
gitlab.image.pullSecretstemplate- Most GitLab (maintained) charts are using
image.pullSecretsproperties andpullsecretstemplate. - Rename
pullsecretstogitlab.image.pullSecrets
- Most GitLab (maintained) charts are using
-
Implement(moved to #2860 (closed))gitlab.image.tagExtensionto complete support for UBI behaviorsThis will needs some extensive work to the GitLab maintained charts, to inject a suffix toimage.tagwhen populated.
cc @pursultani @twk3
Separated items
Edited by Jason Plum