Files
charts/bitnami/drupal/templates/externaldb-secrets.yaml
izturn 2975f6d3d3 [bitnami/drupal] Adjust the naming style for resources (#12756)
* adjust the naming style for resources to make them not pass the length limit

Signed-off-by: Gang Liu <gang.liu@daocloud.io>

* upgrade version

Signed-off-by: Gang Liu <gang.liu@daocloud.io>

Signed-off-by: Gang Liu <gang.liu@daocloud.io>
Signed-off-by: izturn <44051386+izturn@users.noreply.github.com>
2022-10-17 10:57:22 +02:00

12 lines
468 B
YAML

{{- if and (not .Values.mariadb.enabled) (not .Values.externalDatabase.existingSecret) }}
apiVersion: v1
kind: Secret
metadata:
name: {{ printf "%s-externaldb" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
type: Opaque
data:
db-password: {{ default "" .Values.externalDatabase.password | b64enc | quote }}
{{- end }}