Files
charts/bitnami/phpmyadmin/templates/certs.yaml
Miguel Ruiz 5513e01742 [bitnami/phpmyadmin] Add missing namespace metadata (#10153)
* [bitnami/phpmyadmin] Add missing namespace metadata

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

* ServiceMonitor namespace

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

* Add quotes to $.Release.Namespace

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

26 lines
1.0 KiB
YAML

{{- if .Values.db.enableSsl }}
apiVersion: v1
kind: Secret
metadata:
name: {{ printf "%s-certs" (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:
{{- if not (empty .Values.db.ssl.clientKey) }}
server_key.pem: {{ .Values.db.ssl.clientKey | b64enc | quote }}
{{- end }}
{{- if not (empty .Values.db.ssl.clientCertificate) }}
server_certificate.pem: {{ .Values.db.ssl.clientCertificate | b64enc | quote }}
{{- end }}
{{- if not (empty .Values.db.ssl.caCertificate) }}
ca_certificate.pem: {{ .Values.db.ssl.caCertificate | b64enc | quote }}
{{- end }}
{{- end }}