From a0b09b251bea3f67c3cbbc96af06b4b5e3a6997d Mon Sep 17 00:00:00 2001 From: Keny Villela Date: Wed, 26 Apr 2023 10:39:36 -0300 Subject: [PATCH] correcting dependencies ++ --- charts/sigi/v0.2.3/templates/sigi-ldap-secret.yaml | 13 +++++++++++++ .../sigi/v0.2.3/templates/sigi-saberes-token.yaml | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 charts/sigi/v0.2.3/templates/sigi-ldap-secret.yaml create mode 100644 charts/sigi/v0.2.3/templates/sigi-saberes-token.yaml 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 }} +