add: helm chart changes
This commit is contained in:
@@ -11,11 +11,16 @@ data:
|
||||
{{- if .Values.secrets.jwtSecret }}
|
||||
OXICLOUD_JWT_SECRET: {{ .Values.secrets.jwtSecret | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.postgresql.enabled }}
|
||||
DB_PASSWORD: {{ .Values.postgresql.auth.password | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.wopi.enabled }}
|
||||
WOPI_ADMIN_USERNAME: {{ .Values.wopi.collabora.admin.username | b64enc | quote }}
|
||||
WOPI_ADMIN_PASSWORD: {{ .Values.wopi.collabora.admin.password | b64enc | quote }}
|
||||
{{- /* Existing secret retrieval to keep same password during upgrade */-}}
|
||||
{{- $secretName := printf "%s-secret" (include "oxicloud.fullname" .) }}
|
||||
{{- $existingSecret := lookup "v1" "Secret" .Release.Namespace $secretName }}
|
||||
{{- $password := "" }}
|
||||
{{- if and $existingSecret (hasKey $existingSecret.data "WOPI_ADMIN_PASSWORD") }}
|
||||
{{- $password = index $existingSecret.data "WOPI_ADMIN_PASSWORD" }}
|
||||
{{- else }}
|
||||
{{- $password = .Values.wopi.collabora.admin.password | default (randAlphaNum 20) | b64enc }}
|
||||
{{- end }}
|
||||
WOPI_ADMIN_PASSWORD: {{ $password | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user