Expand update_params to accept platform_kubernetes_attributes(api_url, etc)

This commit is contained in:
Shinya Maeda 2017-11-16 18:00:11 +09:00 committed by Kamil Trzcinski
parent 10f205f825
commit 6957f939d2
1 changed files with 8 additions and 1 deletions

View File

@ -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!