Try to get secrets from kubernetes for nextcloud oauth
This commit is contained in:
parent
2f0109acf3
commit
f4bdb686cf
|
@ -18,8 +18,8 @@ metadata:
|
|||
name: portowncloudconfig-{{ .name | replace "." "-" | replace ":" "-" }}
|
||||
namespace: {{ $.Values.global.namespace.name | default $.Release.Namespace }}
|
||||
data:
|
||||
OWNCLOUD_OAUTH_CLIENT_ID: {{ .OAUTH_CLIENT_ID | quote }}
|
||||
OWNCLOUD_OAUTH_CLIENT_ID: {{ .Values.environment.OAUTH_CLIENT_SECRET | quote }}
|
||||
OWNCLOUD_INSTALLATION_URL: {{ .ADDRESS | quote }}
|
||||
OWNCLOUD_OAUTH_CLIENT_SECRET: {{ .OAUTH_CLIENT_SECRET | quote }}
|
||||
OWNCLOUD_OAUTH_CLIENT_SECRET: {{ .Values.environment.OAUTH_CLIENT_ID | quote }}
|
||||
SERVICENAME: {{ .name | replace "." "-" | replace ":" "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
|
@ -37,6 +37,17 @@ spec:
|
|||
- name: {{ $.Chart.Name }}
|
||||
image: {{ template "layer1_port_owncloud.image" $ }}
|
||||
imagePullPolicy: {{ $.Values.image.pullPolicy }}
|
||||
env:
|
||||
- name: OAUTH_CLIENT_ID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ $.Chart.Name }}
|
||||
key: "oauth-client-id"
|
||||
- name: OAUTH_CLIENT_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ $.Chart.Name }}
|
||||
key: "oauth-client-secret"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: mservice
|
||||
|
|
Loading…
Reference in a new issue