Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
70893418
Commit
70893418
authored
Jul 17, 2019
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EE: Remove un-used overrides
The CE methods have been removed as they were un-used
parent
6ed0d222
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
ee/app/models/concerns/ee/deployment_platform.rb
ee/app/models/concerns/ee/deployment_platform.rb
+0
-23
No files found.
ee/app/models/concerns/ee/deployment_platform.rb
View file @
70893418
...
@@ -14,29 +14,6 @@ module EE
...
@@ -14,29 +14,6 @@ module EE
.
first
&
.
platform_kubernetes
.
first
&
.
platform_kubernetes
end
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
override
:find_instance_cluster_platform_kubernetes
def
find_instance_cluster_platform_kubernetes
(
environment:
nil
)
def
find_instance_cluster_platform_kubernetes
(
environment:
nil
)
return
super
unless
environment
&&
feature_available?
(
:multiple_clusters
)
return
super
unless
environment
&&
feature_available?
(
:multiple_clusters
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment