diff --git a/deploy/charts/x509-certificate-exporter/README.md b/deploy/charts/x509-certificate-exporter/README.md index 64f203d..023dc99 100644 --- a/deploy/charts/x509-certificate-exporter/README.md +++ b/deploy/charts/x509-certificate-exporter/README.md @@ -311,6 +311,7 @@ in the container namespace. | image.registry | string | `"docker.io"` | x509-certificate-exporter image registry | | image.repository | string | `"enix/x509-certificate-exporter"` | x509-certificate-exporter image repository | | image.tag | string | `nil` | x509-certificate-exporter image tag (defaults to Chart appVersion) | +| image.tagSuffix | string | `nil` | Suffix added to image tags for container flavor selection (could be `-busybox`, `-alpine`, or `-scratch`) | | image.pullPolicy | string | `"IfNotPresent"` | x509-certificate-exporter image pull policy | | psp.create | bool | `false` | Should Pod Security Policy resources be created | | rbac.create | bool | `true` | Should RBAC resources be created | diff --git a/deploy/charts/x509-certificate-exporter/templates/_helpers.tpl b/deploy/charts/x509-certificate-exporter/templates/_helpers.tpl index ceaaf3a..d8b4a30 100644 --- a/deploy/charts/x509-certificate-exporter/templates/_helpers.tpl +++ b/deploy/charts/x509-certificate-exporter/templates/_helpers.tpl @@ -60,7 +60,7 @@ Return the proper x509-certificate-exporter image name {{- define "x509-certificate-exporter.image" -}} {{- $registryName := .Values.image.registry -}} {{- $repositoryName := .Values.image.repository -}} -{{- $tag := default .Chart.AppVersion .Values.image.tag | toString -}} +{{- $tag := printf "%s%s" ( default .Chart.AppVersion .Values.image.tag | toString ) ( .Values.image.tagSuffix | toString ) -}} {{/* Helm 2.11 supports the assignment of a value to a variable defined in a different scope, but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic. diff --git a/deploy/charts/x509-certificate-exporter/values.yaml b/deploy/charts/x509-certificate-exporter/values.yaml index e474f72..6d53c21 100644 --- a/deploy/charts/x509-certificate-exporter/values.yaml +++ b/deploy/charts/x509-certificate-exporter/values.yaml @@ -30,6 +30,8 @@ image: repository: enix/x509-certificate-exporter # -- x509-certificate-exporter image tag (defaults to Chart appVersion) tag: + # -- Suffix added to image tags for container flavor selection (could be `-busybox`, `-alpine`, or `-scratch`) + tagSuffix: # -- x509-certificate-exporter image pull policy pullPolicy: IfNotPresent