summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-11-06 15:50:55 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2017-11-06 15:52:21 +0100
commit895b6e5d80397fdd6cb5e1727a410a08f8a5b332 (patch)
tree4a8b11559d33c264673fdd7e714918c8eba8d7d5 /app
parentf3a3566edc8fe24337b9df163f4699785061bb38 (diff)
downloadgitlab-ce-895b6e5d80397fdd6cb5e1727a410a08f8a5b332.tar.gz
Add active? to Platforms::Kubernetes
Diffstat (limited to 'app')
-rw-r--r--app/models/clusters/platforms/kubernetes.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/clusters/platforms/kubernetes.rb b/app/models/clusters/platforms/kubernetes.rb
index 74f7c9442db..6dc1ee810d3 100644
--- a/app/models/clusters/platforms/kubernetes.rb
+++ b/app/models/clusters/platforms/kubernetes.rb
@@ -74,6 +74,10 @@ module Clusters
)
end
+ def active?
+ manages_kubernetes_service?
+ end
+
private
def enforce_namespace_to_lower_case