mirror of
https://github.com/truenas/charts.git
synced 2026-11-07 00:33:13 +00:00
16 lines
560 B
YAML
16 lines
560 B
YAML
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ template "secretName" . }}
|
|
labels: {{ include "common.labels" . | nindent 4 }}
|
|
type: Opaque
|
|
data:
|
|
username: {{ .Values.config.username | b64enc | quote }}
|
|
password: {{ .Values.config.password | b64enc | quote }}
|
|
{{ if eq (include "certAvailable" .) "true" }}
|
|
certPublicKey: {{ (include "cert.publicKey" .) | toString | b64enc | quote }}
|
|
certPrivateKey: {{ (include "cert.privateKey" .) | toString | b64enc | quote }}
|
|
{{ else }}
|
|
{{ fail "No certificate configured for Collabora" }}
|
|
{{ end }}
|