提交 4a341c6d 编写于 作者: G Grzegorz Bizon

Merge branch 'consistent-deployment_platform' into 'master'

Unify deployment_platform interface with EE

See merge request gitlab-org/gitlab-ce!17594
module DeploymentPlatform module DeploymentPlatform
def deployment_platform # EE would override this and utilize the extra argument
def deployment_platform(environment: nil)
@deployment_platform ||= @deployment_platform ||=
find_cluster_platform_kubernetes || find_cluster_platform_kubernetes ||
find_kubernetes_service_integration || find_kubernetes_service_integration ||
......
...@@ -225,7 +225,7 @@ class Environment < ActiveRecord::Base ...@@ -225,7 +225,7 @@ class Environment < ActiveRecord::Base
end end
def deployment_platform def deployment_platform
project.deployment_platform project.deployment_platform(environment: self)
end end
private private
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册