Skip to content

Commit

Permalink
See response
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed Dec 4, 2024
1 parent 3bbf2ad commit 09459c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions phase/install_controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ func (p *InstallControllers) Run() error {
defer cancel()
err := retry.Context(ctx, func(_ context.Context) error {
out, err := h.ExecOutput(h.Configurer.KubectlCmdf(h, h.K0sDataDir(), "get --raw='/healthz' --kubeconfig=/dev/stdin"), exec.Sudo(h), exec.Stdin(string(h.Metadata.K0sTokenData.Kubeconfig)))
if out != "OK" {
log.Warn("%s: k0s api /healthz response: %q", out)

Check failure on line 127 in phase/install_controllers.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

printf: github.com/sirupsen/logrus.Warn call has possible Printf formatting directive %s (govet)

Check failure on line 127 in phase/install_controllers.go

View workflow job for this annotation

GitHub Actions / unit-test (ubuntu-latest)

github.com/sirupsen/logrus.Warn call has possible Printf formatting directive %s
}
if err != nil {
return fmt.Errorf("failed to connect from controller to kubernetes api - check networking: %w", err)
}
if out != "OK" {
return fmt.Errorf("k0s api /healthz response: %q", out)
}
return nil
})
if err != nil {
Expand Down

0 comments on commit 09459c3

Please sign in to comment.