Allow environment_scope in cluster controllers
This commit is contained in:
parent
3069674787
commit
9616e70a08
3 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,7 @@ class Projects::Clusters::GcpController < Projects::ApplicationController
|
|||
params.require(:cluster).permit(
|
||||
:enabled,
|
||||
:name,
|
||||
:environment_scope,
|
||||
provider_gcp_attributes: [
|
||||
:gcp_project_id,
|
||||
:zone,
|
||||
|
|
|
@ -26,6 +26,7 @@ class Projects::Clusters::UserController < Projects::ApplicationController
|
|||
params.require(:cluster).permit(
|
||||
:enabled,
|
||||
:name,
|
||||
:environment_scope,
|
||||
platform_kubernetes_attributes: [
|
||||
:namespace,
|
||||
:api_url,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue