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
1ba0707c
Commit
1ba0707c
authored
Oct 26, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
e95a9759
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
app/models/clusters/cluster.rb
app/models/clusters/cluster.rb
+1
-3
app/services/clusters/applications/base_service.rb
app/services/clusters/applications/base_service.rb
+1
-7
No files found.
app/models/clusters/cluster.rb
View file @
1ba0707c
...
...
@@ -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'
...
...
app/services/clusters/applications/base_service.rb
View file @
1ba0707c
...
...
@@ -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
...
...
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