Don't allow jupyter install unless ingress external ip is assigned
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
e1d4deb2d2
commit
2ca00a3605
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue