[bitnami/mastodon] Support for customizing standard labels (#18621)

This commit is contained in:
Juan Ariza Toledano
2023-08-29 09:00:12 +02:00
committed by GitHub
parent d0be37cb6d
commit 09787c7589
22 changed files with 51 additions and 140 deletions

View File

@@ -9,11 +9,8 @@ kind: Secret
metadata:
name: {{ printf "%s-smtp" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/part-of: mastodon
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}