Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion commands/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io"
"log"
"os"
"path/filepath"
Expand Down Expand Up @@ -1374,7 +1375,10 @@ func (s *KubernetesCommandService) RunKubernetesKubeconfigExecCredential(c *CmdC
kube := c.Kubernetes()
// it's important that we don't print anything to stdout since this command
// is used by kubectl which relies on stdout to contain _only_ the credential
logger := log.New(os.Stderr, "doctl: ", log.LstdFlags)
logger := log.New(io.Discard, "", 0)
if Verbose {
logger = log.New(os.Stderr, "doctl: ", log.LstdFlags)
}

clusterID := c.Args[0]
cachePath := cachedExecCredentialPath(clusterID)
Expand Down
Loading