Skip to content

Commit 69375bb

Browse files
committed
Change --config arg to --kubeconfig
`--config` is not a known argument to oc
1 parent f1e2497 commit 69375bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ you can specify many default contexts in the environment.
546546
### Defaults when invoking `oc`
547547
Establishing explicit contexts within an application will override these environment defaults.
548548
- `OPENSHIFT_CLIENT_PYTHON_DEFAULT_OC_PATH` - default path to use when invoking `oc`
549-
- `OPENSHIFT_CLIENT_PYTHON_DEFAULT_CONFIG_PATH` - default `--config` argument
549+
- `OPENSHIFT_CLIENT_PYTHON_DEFAULT_CONFIG_PATH` - default `--kubeconfig` argument
550550
- `OPENSHIFT_CLIENT_PYTHON_DEFAULT_API_SERVER` - default `--server` argument
551551
- `OPENSHIFT_CLIENT_PYTHON_DEFAULT_CA_CERT_PATH` - default `--cacert` argument
552552
- `OPENSHIFT_CLIENT_PYTHON_DEFAULT_PROJECT` - default `--namespace` argument

packages/openshift/action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def oc_action(context, verb, cmd_args=None, all_namespaces=False, no_namespace=F
230230
references = {}
231231

232232
if context.get_kubeconfig_path() is not None:
233-
cmds.append("--config=%s" % context.get_kubeconfig_path())
233+
cmds.append("--kubeconfig=%s" % context.get_kubeconfig_path())
234234

235235
if context.get_api_url() is not None:
236236
url = context.get_api_url()

packages/openshift/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def api_server(api_url=None, ca_cert_path=None, kubeconfig_path=None):
423423
Contexts can be nested. The most immediate ancestor cluster context
424424
will define the API server targeted by an action.
425425
:param api_url: The oc --server argument to use.
426-
:param kubeconfig_path: The oc --config argument to use.
426+
:param kubeconfig_path: The oc --kubeconfig argument to use.
427427
:return: The context object. Can be safely ignored.
428428
"""
429429

0 commit comments

Comments
 (0)