Files
charts/bitnami/mediawiki/templates/externaldb-secrets.yaml
Miguel Ruiz beefdaee93 [bitnami/mediawiki] Add missing namespace metadata (#10139)
* [bitnami/mediawiki] Add missing namespace metadata

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Add quotes

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* ServiceMonitor namespace

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Fix VIB upload image reference

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Quote namespaces

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
2022-05-12 11:00:52 +02:00

18 lines
755 B
YAML

{{- if (not (or .Values.mariadb.enabled .Values.externalDatabase.existingSecret)) }}
apiVersion: v1
kind: Secret
metadata:
name: {{ printf "%s-externaldb" (include "common.names.fullname" .) }}
namespace: {{ .Release.Namespace | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- 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 }}
type: Opaque
data:
mariadb-password: {{ default "" .Values.externalDatabase.password | b64enc | quote }}
{{- end }}