Skip to content

Commit 0fd8972

Browse files
authored
fix: get_client() client_configuration (#2371)
Support client_configuration provided via kwargs
1 parent 7057c4f commit 0fd8972

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)