HarrisKirk / blue-green-dreams

2 stars 1 forks source link

Fix the "kubectl version --output=yaml --client=true" not producing correct output from python #25

Closed HarrisKirk closed 1 year ago

HarrisKirk commented 1 year ago

It should produce

clientVersion:
  buildDate: "2023-01-18T15:58:16Z"
  compiler: gc
  gitCommit: 8f94681cd294aa8cfd3407b8191f6c70214973a4
  gitTreeState: clean
  gitVersion: v1.26.1
  goVersion: go1.19.5
  major: "1"
  minor: "26"
  platform: linux/amd64
kustomizeVersion: v4.5.7

But instead produces the generic k8s help message

Note: Runnning the kubectl version --output=yaml --client=true directly in the container as a shell command works, but from python the erroneous help text appears

HarrisKirk commented 1 year ago

https://github.com/HarrisKirk/good-weather/commit/174e42e3de4150a0df3ff7bf98157448bdd24242