Skip to content

Commit

Permalink
Bump version to 2.1.1.rc11 and enable debug output for shell command …
Browse files Browse the repository at this point in the history
…execution
  • Loading branch information
vitobotta committed Jan 27, 2025
1 parent 44c8412 commit 3664b90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hetzner-k3s.cr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require "./cluster/upgrade"

module Hetzner::K3s
class CLI < Admiral::Command
VERSION = "2.1.1.rc10"
VERSION = "2.1.1.rc11"

class Create < Admiral::Command
define_help description: "create - Create a cluster"
Expand Down
5 changes: 4 additions & 1 deletion src/hetzner/instance/create.cr
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,10 @@ class Hetzner::Instance::Create
return nil unless api_server_ready?(settings.kubeconfig_path)

command = build_kubectl_command(instance_name)
result = run_shell_command(command, settings.kubeconfig_path, settings.hetzner_token, print_output: false, abort_on_error: false)

debug = ENV.fetch("DEBUG", "false") == "true"

result = run_shell_command(command, settings.kubeconfig_path, settings.hetzner_token, print_output: debug, abort_on_error: false)

return nil unless result.success?

Expand Down

0 comments on commit 3664b90

Please sign in to comment.