From 302e5e4f9c7209c0b451789f7d9b96bdb6487ff6 Mon Sep 17 00:00:00 2001 From: Yuan Gong Date: Wed, 8 Jul 2020 23:49:34 +0800 Subject: [PATCH] Use kubeflow userid header and prefix config --- .../multi-user/api-service/deployment-patch.yaml | 11 +++++++++++ .../multi-user/pipelines-ui/deployment-patch.yaml | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/pipeline/installs/multi-user/api-service/deployment-patch.yaml b/pipeline/installs/multi-user/api-service/deployment-patch.yaml index 25a4e686a6..72ebe35bfc 100644 --- a/pipeline/installs/multi-user/api-service/deployment-patch.yaml +++ b/pipeline/installs/multi-user/api-service/deployment-patch.yaml @@ -10,3 +10,14 @@ spec: envFrom: - configMapRef: name: pipeline-api-server-config + env: + - name: KUBEFLOW_USERID_HEADER + valueFrom: + configMapKeyRef: + name: kubeflow-config + key: userid-header + - name: KUBEFLOW_USERID_PREFIX + valueFrom: + configMapKeyRef: + name: kubeflow-config + key: userid-prefix diff --git a/pipeline/installs/multi-user/pipelines-ui/deployment-patch.yaml b/pipeline/installs/multi-user/pipelines-ui/deployment-patch.yaml index 3ff5950b75..1cdcb0bfcf 100644 --- a/pipeline/installs/multi-user/pipelines-ui/deployment-patch.yaml +++ b/pipeline/installs/multi-user/pipelines-ui/deployment-patch.yaml @@ -24,6 +24,16 @@ spec: value: 'true' - name: ENABLE_AUTHZ value: 'true' + - name: KUBEFLOW_USERID_HEADER + valueFrom: + configMapKeyRef: + name: kubeflow-config + key: userid-header + - name: KUBEFLOW_USERID_PREFIX + valueFrom: + configMapKeyRef: + name: kubeflow-config + key: userid-prefix volumeMounts: - name: config-volume mountPath: /etc/config