Skip to content

[REQ] add no_proxy support to python client #10647

Closed

Description

@itaru2622

Is your feature request related to a problem? Please describe.

add 'no_proxy' feature supporting in python client besides current 'proxy' and 'proxy_headers' features.

there is no 'no_proxy' feature in current python client as below:

self.proxy = None
"""Proxy URL
"""
self.proxy_headers = None
"""Proxy headers
"""

if configuration.proxy:
self.pool_manager = urllib3.ProxyManager(
num_pools=pools_size,

as the result, it needs to set/unset proxy parameter according to the destinations.

for example, kubernets(CNCF) provides its API in openapi definition. and CNCF official python client, using the code generated by openapi-generator, access to cloud servers as well as on-premise servers.
as the result, user needs to set/unset proxy parameter according to the destinations.
it is bothering task.

Describe the solution you'd like

add no_proxy parameter in configuration.py, then rest.py chooses either ProxyManager or PoolManager according to
the parameters(proxy and no_proxy).

Describe alternatives you've considered

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions