diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-05-11 16:29:55 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-05-25 17:15:57 +0300 |
commit | 8a1ac8f4ce0d8e96234ef32cd032adaf7cc57b1a (patch) | |
tree | d514219bd6f28b45c6f47390d3d07169457d8bd5 | |
parent | b07771683d611d16d08a6a316e0966bf42cd0c88 (diff) |
Add Applications::Jupyter class sceleton
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r-- | app/models/clusters/applications/jupyter.rb | 28 | ||||
-rw-r--r-- | app/models/clusters/cluster.rb | 3 |
2 files changed, 30 insertions, 1 deletions
diff --git a/app/models/clusters/applications/jupyter.rb b/app/models/clusters/applications/jupyter.rb new file mode 100644 index 00000000000..ec75c120dac --- /dev/null +++ b/app/models/clusters/applications/jupyter.rb @@ -0,0 +1,28 @@ +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 diff --git a/app/models/clusters/cluster.rb b/app/models/clusters/cluster.rb index 77947d515c1..92e5da77066 100644 --- a/app/models/clusters/cluster.rb +++ b/app/models/clusters/cluster.rb @@ -8,7 +8,8 @@ module Clusters Applications::Helm.application_name => Applications::Helm, Applications::Ingress.application_name => Applications::Ingress, 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 DEFAULT_ENVIRONMENT = '*'.freeze |