Skip to content

Commit 176b0af

Browse files
authored
fix: get_client() client_configuration (#2371)
Support client_configuration provided via kwargs
1 parent 6eb77c8 commit 176b0af

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ocp_resources/resource.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,11 @@ def get_client(
131131
)
132132
client_configuration.proxy = proxy
133133

134+
kwargs["client_configuration"] = client_configuration
135+
134136
return kubernetes.dynamic.DynamicClient(
135137
client=kubernetes.config.new_client_from_config(
136138
config_file=config_file,
137-
client_configuration=client_configuration,
138139
context=context or None,
139140
**kwargs,
140141
)

0 commit comments

Comments
 (0)