summaryrefslogtreecommitdiff
path: root/app/models/clusters/cluster.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-11-06 15:48:44 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2017-11-06 15:48:44 +0100
commitac927462dc1b9578de3a716e9e4ff551f424663b (patch)
tree86aa6259222f1a1074bdf301b071ad2bc1480e8e /app/models/clusters/cluster.rb
parentdc55abaa504b270a8ba89f475513364486ed91a4 (diff)
downloadgitlab-ce-ac927462dc1b9578de3a716e9e4ff551f424663b.tar.gz
Add support for not_installable/scheduled and to not show created banner
Diffstat (limited to 'app/models/clusters/cluster.rb')
-rw-r--r--app/models/clusters/cluster.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/clusters/cluster.rb b/app/models/clusters/cluster.rb
index 90508e31e93..185d9473aab 100644
--- a/app/models/clusters/cluster.rb
+++ b/app/models/clusters/cluster.rb
@@ -39,6 +39,9 @@ module Clusters
delegate :on_creation?, to: :provider, allow_nil: true
delegate :update_kubernetes_integration!, to: :platform, allow_nil: true
+ delegate :active?, to: :platform_kubernetes, prefix: true, allow_nil: true
+ delegate :installed?, to: :application_helm, prefix: true, allow_nil: true
+
enum platform_type: {
kubernetes: 1
}
@@ -60,8 +63,6 @@ module Clusters
end
def applications
- return [] unless kubernetes?
-
[
application_helm || build_application_helm,
application_ingress || build_application_ingress