gitlab-org--gitlab-foss/app/models/project_services/mock_deployment_service.rb
Tiger Watson 36a01a88ce Use separate Kubernetes namespaces per environment
Kubernetes deployments on new clusters will now have
a separate namespace per project environment, instead
of sharing a single namespace for the project.

Behaviour of existing clusters is unchanged.

All new functionality is controlled by the
:kubernetes_namespace_per_environment feature flag,
which is safe to enable/disable at any time.
2019-08-07 04:40:29 +00:00

34 lines
477 B
Ruby

# frozen_string_literal: true
class MockDeploymentService < Service
default_value_for :category, 'deployment'
def title
'Mock deployment'
end
def description
'Mock deployment service'
end
def self.to_param
'mock_deployment'
end
# No terminals support
def terminals(environment)
[]
end
def self.supported_events
%w()
end
def predefined_variables(project:, environment_name:)
[]
end
def can_test?
false
end
end