Commit 70893418 authored by Thong Kuah's avatar Thong Kuah

EE: Remove un-used overrides

The CE methods have been removed as they were un-used
parent 6ed0d222
......@@ -14,29 +14,6 @@ module EE
.first&.platform_kubernetes
end
override :find_cluster_platform_kubernetes
def find_cluster_platform_kubernetes(environment: nil)
return super unless environment && feature_available?(:multiple_clusters)
clusters.enabled
.on_environment(environment)
.last&.platform_kubernetes
end
override :find_group_cluster_platform_kubernetes
def find_group_cluster_platform_kubernetes(environment: nil)
return super unless environment && feature_available?(:multiple_clusters)
# With relevant_only: true
# on_environment use CASE which returns numbers in ascending order
# So we can use `hierarchy_order: :asc` + first
::Clusters::Cluster
.enabled
.on_environment(environment, relevant_only: true)
.ancestor_clusters_for_clusterable(self, hierarchy_order: :asc)
.first&.platform_kubernetes
end
override :find_instance_cluster_platform_kubernetes
def find_instance_cluster_platform_kubernetes(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