mirror of
https://github.com/enix/x509-certificate-exporter.git
synced 2026-08-23 22:16:39 +00:00
feat(chart): new value image.tagSuffix for container flavor selection
This commit is contained in:
@@ -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 |
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user