Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gpt
large_projects
gitlabhq1
Commits
78ae4190
Commit
78ae4190
authored
7 years ago
by
Shinya Maeda
Browse files
Options
Download
Email Patches
Plain Diff
Expand update_params to accept platform_kubernetes_attributes(api_url, etc)
parent
c38f6d6b
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 @
78ae4190
...
...
@@ -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!
...
...
This diff is collapsed.
Click to expand it.
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