Browse Source

rc tests +

master
Keny Villela 2 years ago
parent
commit
ec687ea659
  1. 4
      charts/sigi/v0.2.3/templates/deployment.yaml
  2. 7
      charts/sigi/v0.2.3/templates/sigi-ldap-secret.yaml
  3. 2
      charts/sigi/v0.2.3/templates/sigi-saberes-token.yaml

4
charts/sigi/v0.2.3/templates/deployment.yaml

@ -63,7 +63,7 @@ spec:
valueFrom:
# Secret Key
secretKeyRef:
name: {{ include "sigi.name" . }}-auth-ldap-key
name: {{ include "sigi.fullname" . }}-auth-ldap-key
key: AUTH_LDAP_BIND_PASSWORD
- name: AUTH_LDAP_USER_SEARCH_STRING
value: "{{ .Values.sigi.auth.ldap.userSearchString }}"
@ -93,7 +93,7 @@ spec:
valueFrom:
# Secret Key
secretKeyRef:
name: {{ include "sigi.name" . }}-saberes-tkn
name: {{ include "sigi.fullname" . }}-saberes-tkn
key: MOODLE_API_TOKEN
volumeMounts:
# - mountPath: /var/interlegis/sigi/data

7
charts/sigi/v0.2.3/templates/sigi-ldap-secret.yaml

@ -1,13 +1,10 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "sigi.name" . }}-auth-ldap-key
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 (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 }}
{{ end }}

2
charts/sigi/v0.2.3/templates/sigi-saberes-token.yaml

@ -1,7 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "sigi.name" . }}-saberes-tkn
name: {{ include "sigi.fullname" . }}-saberes-tkn
labels:
{{- include "sigi.labels" . | nindent 4 }}
type: Opaque

Loading…
Cancel
Save