BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
2ca00a36
Commit
2ca00a36
authored
May 25, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't allow jupyter install unless ingress external ip is assigned
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
e1d4deb2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
jupyter.rb
app/models/clusters/applications/jupyter.rb
+8
-0
cluster.rb
app/models/clusters/cluster.rb
+1
-0
No files found.
app/models/clusters/applications/jupyter.rb
View file @
2ca00a36
...
...
@@ -13,6 +13,14 @@ module Clusters
default_value_for
:version
,
VERSION
def
set_initial_status
return
unless
not_installable?
if
cluster
&
.
application_ingress_installed?
&&
cluster
.
application_ingress
.
external_ip
self
.
status
=
'installable'
end
end
def
chart
"
#{
name
}
/jupyterhub"
end
...
...
app/models/clusters/cluster.rb
View file @
2ca00a36
...
...
@@ -41,6 +41,7 @@ module Clusters
delegate
:active?
,
to: :platform_kubernetes
,
prefix:
true
,
allow_nil:
true
delegate
:installed?
,
to: :application_helm
,
prefix:
true
,
allow_nil:
true
delegate
:installed?
,
to: :application_ingress
,
prefix:
true
,
allow_nil:
true
enum
platform_type:
{
kubernetes:
1
...
...
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