mirror of
https://github.com/bitnami/charts.git
synced 2026-03-06 15:10:15 +08:00
25 lines
982 B
YAML
25 lines
982 B
YAML
{{- if .Values.db.enableSsl }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ printf "%s-certs" (include "common.names.fullname" .) }}
|
|
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 }}
|