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

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

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

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

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

Loading…
Cancel
Save