mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 16:30:13 +01:00
Merge pull request #3020 from ckavili/master
oidc server is updated to work with OCP OAuth
This commit is contained in:
commit
3558d711ff
4 changed files with 18 additions and 4 deletions
|
|
@ -37,6 +37,12 @@ spec:
|
||||||
value: {{ .Values.root_url | default "https://wekan.local" | quote }}
|
value: {{ .Values.root_url | default "https://wekan.local" | quote }}
|
||||||
- name: MONGO_URL
|
- name: MONGO_URL
|
||||||
value: "{{ template "mongodb-replicaset.url" . }}"
|
value: "{{ template "mongodb-replicaset.url" . }}"
|
||||||
|
{{- range $key := .Values.env }}
|
||||||
|
{{- if .value }}
|
||||||
|
- name: {{ .name }}
|
||||||
|
value: {{ .value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,10 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
|
{{- if .Values.serviceAccounts.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{ .Values.serviceAccounts.annotations | indent 4}}
|
||||||
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ template "wekan.name" . }}
|
app: {{ template "wekan.name" . }}
|
||||||
chart: {{ template "wekan.chart" . }}
|
chart: {{ template "wekan.chart" . }}
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
serviceAccounts:
|
serviceAccounts:
|
||||||
create: true
|
create: true
|
||||||
name: ""
|
name: ""
|
||||||
|
annotations: ""
|
||||||
|
|
||||||
## Wekan image configuration
|
## Wekan image configuration
|
||||||
##
|
##
|
||||||
|
|
@ -29,7 +30,9 @@ credentials:
|
||||||
|
|
||||||
## Specify additional environmental variables for the Deployment
|
## Specify additional environmental variables for the Deployment
|
||||||
##
|
##
|
||||||
env: {}
|
env:
|
||||||
|
- name: ""
|
||||||
|
value: ""
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: NodePort
|
type: NodePort
|
||||||
|
|
@ -59,10 +62,10 @@ ingress:
|
||||||
# hosts:
|
# hosts:
|
||||||
# - wekan-example.local
|
# - wekan-example.local
|
||||||
|
|
||||||
route:
|
route:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
cpu: 300m
|
cpu: 300m
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ OAuth.registerService('oidc', 2, null, function (query) {
|
||||||
|
|
||||||
var userinfo = getUserInfo(accessToken);
|
var userinfo = getUserInfo(accessToken);
|
||||||
if (userinfo.ocs) userinfo = userinfo.ocs.data; // Nextcloud hack
|
if (userinfo.ocs) userinfo = userinfo.ocs.data; // Nextcloud hack
|
||||||
|
if (userinfo.metadata) userinfo = userinfo.metadata // Openshift hack
|
||||||
if (debug) console.log('XXX: userinfo:', userinfo);
|
if (debug) console.log('XXX: userinfo:', userinfo);
|
||||||
|
|
||||||
var serviceData = {};
|
var serviceData = {};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue