summaryrefslogtreecommitdiff
path: root/app/controllers/projects/clusters_controller.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2017-12-19 08:17:54 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2017-12-19 08:17:54 +0000
commit888ed3096946f3b7b93d621285ae4c2c6aeef9d0 (patch)
treeee0a28629324a97638165af5fb50d68e4f9d0ccb /app/controllers/projects/clusters_controller.rb
parent5ebaafc3bcb79b29cde81809f741a6382891091e (diff)
parentecba48bdb04ca59b2fec91ac2a2390523ee5e9e0 (diff)
downloadgitlab-ce-888ed3096946f3b7b93d621285ae4c2c6aeef9d0.tar.gz
Merge branch 'fix-cluster-enviroment-missing' into 'master'
Fix cluster enviroment missing See merge request gitlab-org/gitlab-ce!15973
Diffstat (limited to 'app/controllers/projects/clusters_controller.rb')
-rw-r--r--app/controllers/projects/clusters_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects/clusters_controller.rb b/app/controllers/projects/clusters_controller.rb
index 4a7879db313..1dc7f1b3a7f 100644
--- a/app/controllers/projects/clusters_controller.rb
+++ b/app/controllers/projects/clusters_controller.rb
@@ -87,6 +87,7 @@ class Projects::ClustersController < Projects::ApplicationController
if cluster.managed?
params.require(:cluster).permit(
:enabled,
+ :environment_scope,
platform_kubernetes_attributes: [
:namespace
]
@@ -95,6 +96,7 @@ class Projects::ClustersController < Projects::ApplicationController
params.require(:cluster).permit(
:enabled,
:name,
+ :environment_scope,
platform_kubernetes_attributes: [
:api_url,
:token,