From 7df9be962b31c0103d636548ff367e3e330729e0 Mon Sep 17 00:00:00 2001 From: Keny Villela Date: Mon, 24 Apr 2023 17:30:06 -0300 Subject: [PATCH] Saberes env vars included --- charts/sigi/v0.2.3/templates/deployment.yaml | 11 +++++++++++ charts/sigi/v0.2.3/values.yaml | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/charts/sigi/v0.2.3/templates/deployment.yaml b/charts/sigi/v0.2.3/templates/deployment.yaml index 9f1cfa1..0b11d90 100644 --- a/charts/sigi/v0.2.3/templates/deployment.yaml +++ b/charts/sigi/v0.2.3/templates/deployment.yaml @@ -141,6 +141,17 @@ spec: secretKeyRef: name: sigi-auth-ldap-key key: AUTH_LDAP_BIND_PASSWORD + - name: MOODLE_BASE_URL + valueFrom: + configMapKeyRef: + name: sigi-saberes-url + key: MOODLE_BASE_URL + - name: MOODLE_API_TOKEN + valueFrom: + # Secret Key + secretKeyRef: + name: sigi-saberes-tkn + key: MOODLE_API_TOKEN volumeMounts: # - mountPath: /var/interlegis/sigi/data # name: data diff --git a/charts/sigi/v0.2.3/values.yaml b/charts/sigi/v0.2.3/values.yaml index cbf9c38..bc4a7e3 100644 --- a/charts/sigi/v0.2.3/values.yaml +++ b/charts/sigi/v0.2.3/values.yaml @@ -71,6 +71,10 @@ sigi: groupCacheTimeout: 3600 profileModule: 'servidores.Servidor' +saberes: + moodleURL: 'https://saberes.senado.leg.br' + moodleToken: '' + ingress: enabled: true class: nginx