diff options
Diffstat (limited to 'app/services/environments')
-rw-r--r-- | app/services/environments/create_service.rb | 2 | ||||
-rw-r--r-- | app/services/environments/update_service.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/services/environments/create_service.rb b/app/services/environments/create_service.rb index 760c8a6e306..fd78a886e29 100644 --- a/app/services/environments/create_service.rb +++ b/app/services/environments/create_service.rb @@ -2,7 +2,7 @@ module Environments class CreateService < BaseService - ALLOWED_ATTRIBUTES = %i[name external_url tier cluster_agent].freeze + ALLOWED_ATTRIBUTES = %i[name external_url tier cluster_agent kubernetes_namespace].freeze def execute unless can?(current_user, :create_environment, project) diff --git a/app/services/environments/update_service.rb b/app/services/environments/update_service.rb index 5eb4880ec4b..52f6198bada 100644 --- a/app/services/environments/update_service.rb +++ b/app/services/environments/update_service.rb @@ -2,7 +2,7 @@ module Environments class UpdateService < BaseService - ALLOWED_ATTRIBUTES = %i[external_url tier cluster_agent].freeze + ALLOWED_ATTRIBUTES = %i[external_url tier cluster_agent kubernetes_namespace].freeze def execute(environment) unless can?(current_user, :update_environment, environment) |