summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-26 00:06:20 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-26 00:06:20 +0000
commit1ba0707c21da17d1c107ba2da1e7a3de9d63573a (patch)
treeb85258b333bccfd5c0b27698024cfe43f359319e
parente95a97594ae2da675cb80fdb2ecb2ae64526d1d4 (diff)
downloadgitlab-ce-1ba0707c21da17d1c107ba2da1e7a3de9d63573a.tar.gz
Add latest changes from gitlab-org/gitlab@master
-rw-r--r--app/models/clusters/cluster.rb4
-rw-r--r--app/services/clusters/applications/base_service.rb8
2 files changed, 2 insertions, 10 deletions
diff --git a/app/models/clusters/cluster.rb b/app/models/clusters/cluster.rb
index e3e2f06c313..acd744bfaf5 100644
--- a/app/models/clusters/cluster.rb
+++ b/app/models/clusters/cluster.rb
@@ -9,8 +9,6 @@ module Clusters
self.table_name = 'clusters'
- PROJECT_ONLY_APPLICATIONS = {
- }.freeze
APPLICATIONS = {
Applications::Helm.application_name => Applications::Helm,
Applications::Ingress.application_name => Applications::Ingress,
@@ -20,7 +18,7 @@ module Clusters
Applications::Jupyter.application_name => Applications::Jupyter,
Applications::Knative.application_name => Applications::Knative,
Applications::ElasticStack.application_name => Applications::ElasticStack
- }.merge(PROJECT_ONLY_APPLICATIONS).freeze
+ }.freeze
DEFAULT_ENVIRONMENT = '*'
KUBE_INGRESS_BASE_DOMAIN = 'KUBE_INGRESS_BASE_DOMAIN'
diff --git a/app/services/clusters/applications/base_service.rb b/app/services/clusters/applications/base_service.rb
index b39fc7d20a9..1a6f6e3aa6f 100644
--- a/app/services/clusters/applications/base_service.rb
+++ b/app/services/clusters/applications/base_service.rb
@@ -64,19 +64,13 @@ module Clusters
end
def invalid_application?
- unknown_application? || (!cluster.project_type? && project_only_application?) || (application_name == Applications::ElasticStack.application_name && !Feature.enabled?(:enable_cluster_application_elastic_stack))
+ unknown_application? || (application_name == Applications::ElasticStack.application_name && !Feature.enabled?(:enable_cluster_application_elastic_stack))
end
def unknown_application?
Clusters::Cluster::APPLICATIONS.keys.exclude?(application_name)
end
- # These applications will need extra configuration to enable them to work
- # with groups of projects
- def project_only_application?
- Clusters::Cluster::PROJECT_ONLY_APPLICATIONS.include?(application_name)
- end
-
def application_name
params[:application]
end