Use secrets for osf and zenodo

This commit is contained in:
Micke Nordin 2023-06-13 15:40:58 +02:00
parent dca54826c0
commit 479b5e7b64
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
2 changed files with 22 additions and 0 deletions

View file

@ -23,6 +23,17 @@ spec:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
image: {{ template "layer1_port_openscienceframework.image" . }} image: {{ template "layer1_port_openscienceframework.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: OAUTH_CLIENT_ID
valueFrom:
secretKeyRef:
name: osf-client
key: osf-client-id
- name: OAUTH_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: osf-client
key: osf-client-secret
envFrom: envFrom:
- configMapRef: - configMapRef:
name: mservice name: mservice

View file

@ -23,6 +23,17 @@ spec:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
image: {{ template "layer1_port_zenodo.image" . }} image: {{ template "layer1_port_zenodo.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: OAUTH_CLIENT_ID
valueFrom:
secretKeyRef:
name: zenodo-client
key: zenodo-client-id
- name: OAUTH_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: zenodo-client
key: zenodo-client-secret
envFrom: envFrom:
- configMapRef: - configMapRef:
name: mservice name: mservice