Skip to content

Commit 5f1d83d

Browse files
TristanCacquerayfabianvf
authored andcommitted
Update kube_config to support concurrent clusters (#193)
The kube_config module needs to use that client_config constructor to properly support concurrent cluster configuration. This line is imported from the kubernetes python client.
1 parent ecc91bb commit 5f1d83d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openshift/config/kube_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def new_client_from_config(config_file=None, context=None):
66
"""Loads configuration the same as load_kube_config but returns an ApiClient
77
to be used with any API object. This will allow the caller to concurrently
88
talk with multiple clusters."""
9-
client_config = Configuration()
9+
client_config = type.__call__(Configuration)
1010
load_kube_config(config_file=config_file, context=context,
1111
client_configuration=client_config)
1212
return ApiClient(configuration=client_config)

0 commit comments

Comments
 (0)