Commit 492cf5ee authored by Lin Jen-Shin's avatar Lin Jen-Shin

Unify deployment_platform interface with CE

Make sure we override the method from CE, too
parent fc8edbe1
module DeploymentPlatform
def deployment_platform
# EE would override this and utilize the extra argument
def deployment_platform(environment: nil)
@deployment_platform ||=
find_cluster_platform_kubernetes ||
find_kubernetes_service_integration ||
......
......@@ -229,7 +229,7 @@ class Environment < ActiveRecord::Base
end
def deployment_platform
project.deployment_platform
project.deployment_platform(environment: self)
end
private
......
module EE
module DeploymentPlatform
extend ::Gitlab::Utils::Override
override :deployment_platform
def deployment_platform(environment: nil)
return super unless environment && feature_available?(:multiple_clusters)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment