minio: fix labels for provisioning job (#13833)

Signed-off-by: Boris Lutz <boris.lutz1982@gmail.com>

Signed-off-by: Boris Lutz <boris.lutz1982@gmail.com>
Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
This commit is contained in:
Boris Lutz
2022-12-15 14:12:37 +01:00
committed by GitHub
co-authored by Carlos Rodríguez Hernández
parent cfcea2c896
commit dfcfc719fd
3 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -25,4 +25,4 @@ name: minio
sources:
- https://github.com/bitnami/containers/tree/main/bitnami/minio
- https://min.io
version: 11.10.23
version: 11.10.24
+11
View File
@@ -314,3 +314,14 @@ Return true if a TLS secret object should be created
{{- true -}}
{{- end -}}
{{- end -}}
{{/*
Provisioning job labels (exclude matchLabels from standard labels)
*/}}
{{- define "minio.labels.provisioning" -}}
{{- $provisioningLabels := (include "common.labels.standard" . | fromYaml ) -}}
{{- range (include "common.labels.matchLabels" . | fromYaml | keys ) -}}
{{- $_ := unset $provisioningLabels . -}}
{{- end -}}
{{- print ($provisioningLabels | toYaml) -}}
{{- end -}}
@@ -21,7 +21,7 @@ spec:
parallelism: 1
template:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
labels: {{- include "minio.labels.provisioning" . | nindent 8 }}
app.kubernetes.io/component: minio-provisioning
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.podLabels "context" $) | nindent 8 }}