Commit 2ca00a36 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Don't allow jupyter install unless ingress external ip is assigned

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent e1d4deb2
...@@ -13,6 +13,14 @@ module Clusters ...@@ -13,6 +13,14 @@ module Clusters
default_value_for :version, VERSION 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 def chart
"#{name}/jupyterhub" "#{name}/jupyterhub"
end end
......
...@@ -41,6 +41,7 @@ module Clusters ...@@ -41,6 +41,7 @@ module Clusters
delegate :active?, to: :platform_kubernetes, prefix: true, allow_nil: true delegate :active?, to: :platform_kubernetes, prefix: true, allow_nil: true
delegate :installed?, to: :application_helm, 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: { enum platform_type: {
kubernetes: 1 kubernetes: 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment