Keny Villela
2 years ago
7 changed files with 13 additions and 9 deletions
@ -1,9 +1,13 @@ |
|||||
apiVersion: v1 |
apiVersion: v1 |
||||
kind: Secret |
kind: Secret |
||||
metadata: |
metadata: |
||||
name: {{ include "sigi.fullname" . }}-auth-ldap-key |
name: {{ include "sigi.name" . }}-auth-ldap-key |
||||
labels: |
labels: |
||||
{{- include "sigi.labels" . | nindent 4 }} |
{{- include "sigi.labels" . | nindent 4 }} |
||||
type: Opaque |
type: Opaque |
||||
data: |
data: |
||||
|
{{- if .Release.IsUpgrade }} |
||||
|
AUTH_LDAP_BIND_PASSWORD: {{ index (lookup "v1" "Secret" .Release.Namespace (printf "%s-auth-ldap-key" (include "sigi.name" .))).data "AUTH_LDAP_BIND_PASSWORD" }} |
||||
|
{{ else }} # install operation |
||||
AUTH_LDAP_BIND_PASSWORD: {{ .Values.sigi.auth.ldap.bindPwd | b64enc }} |
AUTH_LDAP_BIND_PASSWORD: {{ .Values.sigi.auth.ldap.bindPwd | b64enc }} |
||||
|
{{ end }} |
||||
|
Loading…
Reference in new issue