Skip to content
Snippets Groups Projects
Commit 2ca00a36 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

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

parent e1d4deb2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment