Skip to content

Commit

Permalink
verbose=true
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed Dec 3, 2024
1 parent 1aae0d5 commit 7b82a92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phase/install_controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (p *InstallControllers) Run() error {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
err := retry.Context(ctx, func(_ context.Context) error {
out, err := h.ExecOutput(h.Configurer.KubectlCmdf(h, h.K0sDataDir(), "get --raw='/readyz'"), exec.Sudo(h), exec.StreamOutput(), exec.Stdin(string(h.Metadata.K0sTokenData.Kubeconfig)))
out, err := h.ExecOutput(h.Configurer.KubectlCmdf(h, h.K0sDataDir(), "get --raw='/readyz?verbose=true'"), exec.Sudo(h), exec.StreamOutput(), exec.Stdin(string(h.Metadata.K0sTokenData.Kubeconfig)))
if out != "ok" {
return fmt.Errorf("kubernetes api /readyz responded with %q", out)
}
Expand Down
2 changes: 1 addition & 1 deletion phase/install_workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (p *InstallWorkers) Run() error {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
err := retry.Context(ctx, func(_ context.Context) error {
out, err := h.ExecOutput(h.Configurer.KubectlCmdf(h, h.K0sDataDir(), "get --raw='/readyz'"), exec.Sudo(h), exec.StreamOutput(), exec.Stdin(string(h.Metadata.K0sTokenData.Kubeconfig)))
out, err := h.ExecOutput(h.Configurer.KubectlCmdf(h, h.K0sDataDir(), "get --raw='/readyz?verbose=true'"), exec.Sudo(h), exec.StreamOutput(), exec.Stdin(string(h.Metadata.K0sTokenData.Kubeconfig)))
if out != "ok" {
return fmt.Errorf("kubernetes api /readyz responded with %q", out)
}
Expand Down

0 comments on commit 7b82a92

Please sign in to comment.