mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-09 05:06:29 +10:00
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:
co-authored by
Carlos Rodríguez Hernández
parent
cfcea2c896
commit
dfcfc719fd
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user