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 ":" "-" }}
|
name: portowncloudconfig-{{ .name | replace "." "-" | replace ":" "-" }}
|
||||||
namespace: {{ $.Values.global.namespace.name | default $.Release.Namespace }}
|
namespace: {{ $.Values.global.namespace.name | default $.Release.Namespace }}
|
||||||
data:
|
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_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 ":" "-" }}
|
SERVICENAME: {{ .name | replace "." "-" | replace ":" "-" }}
|
||||||
{{- end }}
|
{{- end }}
|
|
@ -37,6 +37,17 @@ spec:
|
||||||
- name: {{ $.Chart.Name }}
|
- name: {{ $.Chart.Name }}
|
||||||
image: {{ template "layer1_port_owncloud.image" $ }}
|
image: {{ template "layer1_port_owncloud.image" $ }}
|
||||||
imagePullPolicy: {{ $.Values.image.pullPolicy }}
|
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:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: mservice
|
name: mservice
|
||||||
|
|
Loading…
Reference in a new issue