Skip to content

Commit eb4eb12

Browse files
authored
Merge pull request #1988 from horecoli/return_if_is_ready
Check if cluster-tools are installed untill timeout
2 parents 6d22cb8 + 353b5cd commit eb4eb12

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/tasks/cnf_setup.cr

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ task "cnf_setup", ["helm_local_install", "create_namespace"] do |_, args|
3232
puts "cnf setup airgapped mode complete".colorize(:green)
3333
else
3434
Log.info { "Installing ClusterTools"}
35-
ClusterTools.install
35+
if ClusterTools.install
36+
puts "ClusterTools installed".colorize(:green)
37+
else
38+
puts "The ClusterTools installation timed out. Please check the status of the cluster-tools pods.".colorize(:red)
39+
end
3640
puts "cnf setup online mode".colorize(:green)
3741
CNFManager.sample_setup(cli_hash)
3842
puts "cnf setup online mode complete".colorize(:green)

0 commit comments

Comments
 (0)