summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-07-17 14:44:23 +0000
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-07-17 14:44:23 +0000
commit4e457ebf824603ec2f76523345211360272ff98e (patch)
tree6d7ccc35229bd56e7665f58ffd5cd7a0d0a9a882 /app
parent1e5b8087b1711b7a22d79f5086cf923575437b61 (diff)
parent90aafe78aeddf77a82ddf5efce8139cc29c7e52f (diff)
downloadgitlab-ce-4e457ebf824603ec2f76523345211360272ff98e.tar.gz
Merge branch 'remove_clusters_cte_feature_flag' into 'master'
Removes clusters_cte feature flag Closes #64259 See merge request gitlab-org/gitlab-ce!30827
Diffstat (limited to 'app')
-rw-r--r--app/models/concerns/deployment_platform.rb23
1 files changed, 1 insertions, 22 deletions
diff --git a/app/models/concerns/deployment_platform.rb b/app/models/concerns/deployment_platform.rb
index 8f28c897eb6..e1a8725e728 100644
--- a/app/models/concerns/deployment_platform.rb
+++ b/app/models/concerns/deployment_platform.rb
@@ -12,19 +12,10 @@ module DeploymentPlatform
private
def find_deployment_platform(environment)
- find_platform_kubernetes(environment) ||
+ find_platform_kubernetes_with_cte(environment) ||
find_instance_cluster_platform_kubernetes(environment: environment)
end
- def find_platform_kubernetes(environment)
- if Feature.enabled?(:clusters_cte)
- find_platform_kubernetes_with_cte(environment)
- else
- find_cluster_platform_kubernetes(environment: environment) ||
- find_group_cluster_platform_kubernetes(environment: environment)
- end
- end
-
# EE would override this and utilize environment argument
def find_platform_kubernetes_with_cte(_environment)
Clusters::ClustersHierarchy.new(self).base_and_ancestors
@@ -33,18 +24,6 @@ module DeploymentPlatform
end
# EE would override this and utilize environment argument
- def find_cluster_platform_kubernetes(environment: nil)
- clusters.enabled.default_environment
- .last&.platform_kubernetes
- end
-
- # EE would override this and utilize environment argument
- def find_group_cluster_platform_kubernetes(environment: nil)
- Clusters::Cluster.enabled.default_environment.ancestor_clusters_for_clusterable(self)
- .first&.platform_kubernetes
- end
-
- # EE would override this and utilize environment argument
def find_instance_cluster_platform_kubernetes(environment: nil)
Clusters::Instance.new.clusters.enabled.default_environment
.first&.platform_kubernetes