From 80e2692db21649b3a57bcd00ecd121fc3daa0c09 Mon Sep 17 00:00:00 2001 From: jbpratt Date: Fri, 4 Mar 2022 10:21:54 -0600 Subject: [PATCH] fix kubeconfig flag for newer versions (#142) backwards compatible change: ``` > podman run -it --rm openshift/origin-cli:v3.11.0 oc --kubeconfig Error: flag needs an argument: --kubeconfig ``` Signed-off-by: Brady Pratt --- plugins/connection/oc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/connection/oc.py b/plugins/connection/oc.py index 9c7ca9c..47f1507 100644 --- a/plugins/connection/oc.py +++ b/plugins/connection/oc.py @@ -155,7 +155,7 @@ CONNECTION_TRANSPORT = 'oc' CONNECTION_OPTIONS = { 'oc_container': '-c', 'oc_namespace': '-n', - 'oc_kubeconfig': '--config', + 'oc_kubeconfig': '--kubeconfig', 'oc_context': '--context', 'oc_host': '--server', 'client_cert': '--client-certificate',