forked from eikek/docspell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eikek#2502 Added the option supply existing Kubernetes secrets to loa…
…d secret values.
- Loading branch information
1 parent
53160d3
commit 5c9deb7
Showing
9 changed files
with
188 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
kubernetes/helm/docspell/templates/joex/_existingSecrets.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{- define "docspell.joex.secrets.existingSecrets" -}} | ||
{{/*PostgreSQL Password*/}} | ||
{{- if .Values.postgresql.global.postgresql.auth.existingSecret -}} | ||
- name: DOCSPELL_JOEX_JDBC_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Values.postgresql.global.postgresql.auth.existingSecret }} | ||
key: {{ .Values.postgresql.global.postgresql.auth.secretKeys.userPasswordKey | default "password" }} | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
kubernetes/helm/docspell/templates/restserver/_existingSecrets.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{{- define "docspell.server.secrets.existingSecrets" -}} | ||
{{/*Server Secret*/}} | ||
{{- if .Values.docspell.server.auth.serverSecret -}} | ||
{{- if and .Values.docspell.server.auth.serverSecret.existingSecret (not .Values.docspell.server.auth.serverSecret.value) -}} | ||
- name: DOCSPELL_SERVER_AUTH_SERVER__SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Values.docspell.server.auth.serverSecret.existingSecret.name }} | ||
key: {{ .Values.docspell.server.auth.serverSecret.existingSecret.key }} | ||
{{- end -}} | ||
{{- end }} | ||
{{/*Integration Endpoint Http Basic Auth*/}} | ||
{{- if .Values.docspell.server.integrationEndpoint.httpBasic.existingSecret }} | ||
- name: DOCSPELL_SERVER_INTEGRATION__ENDPOINT_HTTP__BASIC_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Values.docspell.server.integrationEndpoint.httpBasic.existingSecret.name }} | ||
key: {{ .Values.docspell.server.integrationEndpoint.httpBasic.existingSecret.usernameKey }} | ||
- name: DOCSPELL_SERVER_INTEGRATION__ENDPOINT_HTTP__BASIC_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Values.docspell.server.integrationEndpoint.httpBasic.existingSecret.name }} | ||
key: {{ .Values.docspell.server.integrationEndpoint.httpBasic.existingSecret.passwordKey }} | ||
{{- end }} | ||
{{/*Integration Endpoint Http Header Auth*/}} | ||
{{- if and .Values.docspell.server.integrationEndpoint.enabled .Values.docspell.server.integrationEndpoint.httpHeader.enabled -}} | ||
{{- if .Values.docspell.server.integrationEndpoint.httpHeader.headerValue.existingSecret }} | ||
- name: DOCSPELL_SERVER_INTEGRATION__ENDPOINT_HTTP__HEADER_HEADER__VALUE | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Values.docspell.server.integrationEndpoint.httpHeader.headerValue.existingSecret.name }} | ||
key: {{ .Values.docspell.server.integrationEndpoint.httpHeader.headerValue.existingSecret.key }} | ||
{{- end -}} | ||
{{- end }} | ||
{{/*Admin Endpoint Secret*/}} | ||
{{- with .Values.docspell.server.adminEndpoint.existingSecret }} | ||
- name: DOCSPELL_SERVER_ADMIN__ENDPOINT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .name }} | ||
key: {{ .key }} | ||
{{- end }} | ||
{{/*Sign Up Invitation Generation Password*/}} | ||
{{- if eq .Values.docspell.server.backend.signup.mode "invite" -}} | ||
{{- with .Values.docspell.server.backend.signup.newInvitePassword.existingSecret }} | ||
- name: DOCSPELL_SERVER_BACKEND_SIGNUP_NEW__INVITE__PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .name }} | ||
key: {{ .key }} | ||
{{- end -}} | ||
{{- end }} | ||
{{/*PostgreSQL Password*/}} | ||
{{- if .Values.postgresql.global.postgresql.auth.existingSecret -}} | ||
- name: DOCSPELL_SERVER_BACKEND_JDBC_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Values.postgresql.global.postgresql.auth.existingSecret }} | ||
key: {{ .Values.postgresql.global.postgresql.auth.secretKeys.userPasswordKey | default "password" }} | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters