From b86757b32a16dedbcf646009529cfb3843fd60bf Mon Sep 17 00:00:00 2001 From: Lidia Mokevnina Date: Sat, 1 Jul 2023 00:58:49 +0200 Subject: [PATCH] [430] check for non-empty kubeconfig response --- core/app/services/uffizzi_core/cluster_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/app/services/uffizzi_core/cluster_service.rb b/core/app/services/uffizzi_core/cluster_service.rb index 346e132d..f475faa2 100644 --- a/core/app/services/uffizzi_core/cluster_service.rb +++ b/core/app/services/uffizzi_core/cluster_service.rb @@ -30,7 +30,7 @@ def manage_deploying(cluster, try) deployed_cluster = UffizziCore::ControllerService.show_cluster(cluster) - if deployed_cluster.status.ready + if deployed_cluster.status.ready && deployed_cluster.status.kube_config.present? cluster.finish_deploy cluster.kubeconfig = deployed_cluster.status.kube_config cluster.save!