We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 148d834 commit aa63891Copy full SHA for aa63891
ocp_resources/resource.py
@@ -123,6 +123,11 @@ def get_client(
123
raise ValueError(
124
"Proxy configuration is enabled but neither HTTPS_PROXY nor HTTP_PROXY environment variables are set."
125
)
126
+ if client_configuration.proxy and client_configuration.proxy != proxy:
127
+ raise ValueError(
128
+ f"Conflicting proxy settings: client_configuration.proxy={client_configuration.proxy}, "
129
+ f"but the environment variable 'OPENSHIFT_PYTHON_WRAPPER_CLIENT_USE_PROXY' defines proxy as {proxy}."
130
+ )
131
client_configuration.proxy = proxy
132
133
return kubernetes.dynamic.DynamicClient(
0 commit comments