Skip to content

Commit

Permalink
Hide kubeconfig content from logs
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed Jun 28, 2024
1 parent 1ffeb01 commit be57cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phase/get_kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (p *GetKubeconfig) Title() string {
}

var readKubeconfig = func(h *cluster.Host) (string, error) {
output, err := h.ExecOutput(h.Configurer.K0sCmdf("kubeconfig admin --data-dir=%s", shellescape.Quote(h.K0sDataDir())), exec.Sudo(h))
output, err := h.ExecOutput(h.Configurer.K0sCmdf("kubeconfig admin --data-dir=%s", shellescape.Quote(h.K0sDataDir())), exec.Sudo(h), exec.HideOutput())
if err != nil {
return "", fmt.Errorf("get kubeconfig from host: %w", err)
}
Expand Down

0 comments on commit be57cd7

Please sign in to comment.