weaveworks / launcher

Weave Cloud Launcher
Apache License 2.0
10 stars 13 forks source link

"kubectl version" does not support --output or -o #159

Closed leth closed 6 years ago

leth commented 6 years ago

https://sentry.io/weaveworks/launcher-bootstrap/issues/504798583/

Stacktrace (most recent call first):

  File "/go/src/github.com/weaveworks/launcher/bootstrap/main.go", line 227, in checkK8sVersion
  File "/go/src/github.com/weaveworks/launcher/bootstrap/main.go", line 83, in mainImpl
  File "/go/src/github.com/weaveworks/launcher/bootstrap/main.go", line 41, in main

kubectl error (exit status 1): Error: unknown flag: --output

Examples:
  # Print the client and server versions for the current context
  kubectl version

Options:
  -c, --client=false: Client version only (no server required).
      --short=false: Print just the version number.

Usage:
  kubectl version [options]

Use "kubectl options" for a list of global command-line options (applies to all commands).

Error checking kubernetes version info.
Please check your environment for problems by running "kubectl version".