Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6957f939
Commit
6957f939
authored
Nov 16, 2017
by
Shinya Maeda
Committed by
Kamil Trzcinski
Dec 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expand update_params to accept platform_kubernetes_attributes(api_url, etc)
parent
10f205f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
app/controllers/projects/clusters_controller.rb
app/controllers/projects/clusters_controller.rb
+8
-1
No files found.
app/controllers/projects/clusters_controller.rb
View file @
6957f939
...
...
@@ -58,7 +58,14 @@ class Projects::ClustersController < Projects::ApplicationController
end
def
update_params
params
.
require
(
:cluster
).
permit
(
:enabled
)
params
.
require
(
:cluster
).
permit
(
:enabled
,
platform_kubernetes_attributes:
[
:namespace
,
:api_url
,
:token
,
:ca_cert
])
end
def
authorize_update_cluster!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment