diff --git a/charts/sigi/v0.2.3/templates/sigi-ldap-secret.yaml b/charts/sigi/v0.2.3/templates/sigi-ldap-secret.yaml new file mode 100644 index 0000000..86f86ba --- /dev/null +++ b/charts/sigi/v0.2.3/templates/sigi-ldap-secret.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Secret +metadata: + name: {{ include "sigi.fullname" . }}-auth-ldap-key + labels: + {{- include "sigi.labels" . | nindent 4 }} +type: Opaque +data: +{{- if .Release.IsUpgrade }} + AUTH_LDAP_BIND_PASSWORD: {{ index (lookup "v1" "Secret" .Release.Namespace sigi-auth-ldap-key).data "AUTH_LDAP_BIND_PASSWORD" }} +{{ else }} # install operation + AUTH_LDAP_BIND_PASSWORD: {{ .Values.sigi.auth.ldap.bindPwd | b64enc }} +{{ end }} diff --git a/charts/sigi/v0.2.3/templates/sigi-saberes-token.yaml b/charts/sigi/v0.2.3/templates/sigi-saberes-token.yaml new file mode 100644 index 0000000..009d224 --- /dev/null +++ b/charts/sigi/v0.2.3/templates/sigi-saberes-token.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Secret +metadata: + name: {{ include "sigi.fullname" . }}-saberes-tkn + labels: + {{- include "sigi.labels" . | nindent 4 }} +type: Opaque +data: + MOODLE_API_TOKEN: {{ .Values.sigi.saberes.moodleToken | b64enc }} +