From 7b82a92fc466cbadd686af41468a6739ab80fa5c Mon Sep 17 00:00:00 2001 From: Kimmo Lehto Date: Tue, 3 Dec 2024 10:02:08 +0200 Subject: [PATCH] verbose=true Signed-off-by: Kimmo Lehto --- phase/install_controllers.go | 2 +- phase/install_workers.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phase/install_controllers.go b/phase/install_controllers.go index b3909959..647b4703 100644 --- a/phase/install_controllers.go +++ b/phase/install_controllers.go @@ -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) } diff --git a/phase/install_workers.go b/phase/install_workers.go index 02c40e57..c573c0a2 100644 --- a/phase/install_workers.go +++ b/phase/install_workers.go @@ -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) }