Files
charts/bitnami/osclass/templates/externaldb-secrets.yaml
Miguel Ruiz 57375caec0 [bitnami/osclass] Add missing namespace metadata (#10149)
* [bitnami/osclass] Add missing namespace metadata

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

* Add missing quotes

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

* Add quotes to $.Release.Namespace

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

* ServiceMonitor namespace

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

* ServiceMonitor namespace

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

18 lines
743 B
YAML

{{- if and (not .Values.mariadb.enabled) (not .Values.externalDatabase.existingSecret) }}
apiVersion: v1
kind: Secret
metadata:
name: "{{ include "common.names.fullname" . }}-externaldb"
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:
db-password: {{ default "" .Values.externalDatabase.password | b64enc | quote }}
{{- end }}