You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
457 B
13 lines
457 B
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "sigi.fullname" . }}-saberes-tkn
|
|
labels:
|
|
{{- include "sigi.labels" . | nindent 4 }}
|
|
type: Opaque
|
|
data:
|
|
{{- if .Release.IsUpgrade }}
|
|
MOODLE_API_TOKEN: {{ index (lookup "v1" "Secret" .Release.Namespace (printf "%s-saberes-tkn" (include "sigi.fullname" .))).data "MOODLE_API_TOKEN" }}
|
|
{{ else }} # install operation
|
|
MOODLE_API_TOKEN: {{ .Values.sigi.saberes.moodleToken | b64enc }}
|
|
{{ end }}
|
|
|