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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
8a1ac8f4
Commit
8a1ac8f4
authored
May 11, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Applications::Jupyter class sceleton
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
b0777168
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
app/models/clusters/applications/jupyter.rb
app/models/clusters/applications/jupyter.rb
+28
-0
app/models/clusters/cluster.rb
app/models/clusters/cluster.rb
+2
-1
No files found.
app/models/clusters/applications/jupyter.rb
0 → 100644
View file @
8a1ac8f4
module
Clusters
module
Applications
class
Jupyter
<
ActiveRecord
::
Base
VERSION
=
'0.0.1'
.
freeze
self
.
table_name
=
'clusters_applications_jupyters'
include
::
Clusters
::
Concerns
::
ApplicationCore
include
::
Clusters
::
Concerns
::
ApplicationStatus
include
::
Clusters
::
Concerns
::
ApplicationData
default_value_for
:version
,
VERSION
def
chart
# TODO: publish jupyterhub charts that we can use for our installation
# and provide path to it here.
end
def
install_command
Gitlab
::
Kubernetes
::
Helm
::
InstallCommand
.
new
(
name
,
chart:
chart
,
values:
values
)
end
end
end
end
app/models/clusters/cluster.rb
View file @
8a1ac8f4
...
@@ -8,7 +8,8 @@ module Clusters
...
@@ -8,7 +8,8 @@ module Clusters
Applications
::
Helm
.
application_name
=>
Applications
::
Helm
,
Applications
::
Helm
.
application_name
=>
Applications
::
Helm
,
Applications
::
Ingress
.
application_name
=>
Applications
::
Ingress
,
Applications
::
Ingress
.
application_name
=>
Applications
::
Ingress
,
Applications
::
Prometheus
.
application_name
=>
Applications
::
Prometheus
,
Applications
::
Prometheus
.
application_name
=>
Applications
::
Prometheus
,
Applications
::
Runner
.
application_name
=>
Applications
::
Runner
Applications
::
Runner
.
application_name
=>
Applications
::
Runner
,
Applications
::
Jupyter
.
application_name
=>
Applications
::
Jupyter
}.
freeze
}.
freeze
DEFAULT_ENVIRONMENT
=
'*'
.
freeze
DEFAULT_ENVIRONMENT
=
'*'
.
freeze
...
...
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