summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-08-22 14:04:58 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-09-18 13:40:42 +0300
commit02129c294d4f749d04835d231a24e81850347ebb (patch)
tree9a56ead95909b47f677c8259d96d89e2c14129af /app
parenta744279f5ae55a52a04a5e3a719974992656bc70 (diff)
downloadgitlab-ce-02129c294d4f749d04835d231a24e81850347ebb.tar.gz
Add GitLab cluster id to jupyter configdz-expose-cluster-id-to-jupyter
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/models/clusters/applications/jupyter.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/clusters/applications/jupyter.rb b/app/models/clusters/applications/jupyter.rb
index 3d84eeed5a8..7be6a14f585 100644
--- a/app/models/clusters/applications/jupyter.rb
+++ b/app/models/clusters/applications/jupyter.rb
@@ -73,6 +73,11 @@ module Clusters
"clientSecret" => oauth_application.secret,
"callbackUrl" => callback_url
}
+ },
+ "singleuser" => {
+ "extraEnv" => {
+ "GITLAB_CLUSTER_ID" => cluster.id
+ }
}
}
end