aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2018-07-12 13:07:34 -0400
committerJake Hunsaker <jhunsake@redhat.com>2018-08-16 10:52:16 -0400
commit63ad6c251ab88ab2f0e07ae9e3f1b2771d5e90ca (patch)
tree13547abb465d15155774b4260e9db8e4d142eddd
parent6372a7f7f09511d864aa6bd894109d937f4fda65 (diff)
downloadsos-63ad6c251ab88ab2f0e07ae9e3f1b2771d5e90ca.tar.gz
[kubernetes] Correct config option syntax
Versions of kubernetes after 1.5 use --kubeconfig instead of --config to specify a configuration file to use for kubectl commands. Update the kubernetes plugin to use the proper syntax. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/plugins/kubernetes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/kubernetes.py b/sos/plugins/kubernetes.py
index 21cb51df..c14e078e 100644
--- a/sos/plugins/kubernetes.py
+++ b/sos/plugins/kubernetes.py
@@ -61,7 +61,7 @@ class kubernetes(Plugin, RedHatPlugin):
kube_cmd = "kubectl "
if path.exists('/etc/origin/master/admin.kubeconfig'):
- kube_cmd += "--config=/etc/origin/master/admin.kubeconfig"
+ kube_cmd += "--kubeconfig=/etc/origin/master/admin.kubeconfig"
kube_get_cmd = "get -o json "
for subcmd in ['version', 'config view']: