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(
|
params.require(:cluster).permit(
|
||||||
:enabled,
|
:enabled,
|
||||||
:name,
|
:name,
|
||||||
|
:environment_scope,
|
||||||
provider_gcp_attributes: [
|
provider_gcp_attributes: [
|
||||||
:gcp_project_id,
|
:gcp_project_id,
|
||||||
:zone,
|
:zone,
|
||||||
|
|
|
@ -26,6 +26,7 @@ class Projects::Clusters::UserController < Projects::ApplicationController
|
||||||
params.require(:cluster).permit(
|
params.require(:cluster).permit(
|
||||||
:enabled,
|
:enabled,
|
||||||
:name,
|
:name,
|
||||||
|
:environment_scope,
|
||||||
platform_kubernetes_attributes: [
|
platform_kubernetes_attributes: [
|
||||||
:namespace,
|
:namespace,
|
||||||
:api_url,
|
:api_url,
|
||||||
|
|
|
@ -87,6 +87,7 @@ class Projects::ClustersController < Projects::ApplicationController
|
||||||
if cluster.managed?
|
if cluster.managed?
|
||||||
params.require(:cluster).permit(
|
params.require(:cluster).permit(
|
||||||
:enabled,
|
:enabled,
|
||||||
|
:environment_scope,
|
||||||
platform_kubernetes_attributes: [
|
platform_kubernetes_attributes: [
|
||||||
:namespace
|
:namespace
|
||||||
]
|
]
|
||||||
|
@ -95,6 +96,7 @@ class Projects::ClustersController < Projects::ApplicationController
|
||||||
params.require(:cluster).permit(
|
params.require(:cluster).permit(
|
||||||
:enabled,
|
:enabled,
|
||||||
:name,
|
:name,
|
||||||
|
:environment_scope,
|
||||||
platform_kubernetes_attributes: [
|
platform_kubernetes_attributes: [
|
||||||
:api_url,
|
:api_url,
|
||||||
:token,
|
:token,
|
||||||
|
|
Loading…
Reference in a new issue