-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds support for custom Server Name Indication (SNI) #1933
Adds support for custom Server Name Indication (SNI) #1933
Conversation
Welcome @tigrato! |
/assign @roycaihw |
Hi tigrato, could u plz fix ur version string? Invalid PEP 440 version: '25.0.0-snapshot' thanks |
@@ -77,6 +77,9 @@ def __init__(self, configuration, pools_size=4, maxsize=None): | |||
if configuration.retries is not None: | |||
addition_pool_args['retries'] = configuration.retries | |||
|
|||
if configuration.tls_server_name: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately I think this file is generated, in order to make permanent changes here I believe the PR would need to go to the generator repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide some more information on what to do? Because the gen repo doesn't really say nor point to what needs to be updated. The contributing guide doesn't go into detail either.
This file seems to ref https://github.com/kubernetes-client/gen/blob/master/proto/dependencies.sh even more generated files from the apimachinery repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The auto-generated code is available for openapi-generator
version >=6.6.0
(PR).
Since this repo uses version v4.3.0
, I decided to apply a patch - similar to the current one that exists - to apply the necessary changes to support SNI. Once we start using a version that includes the upstream fix, the patch can be safely removed.
Can you please check it again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the PR. it looks good to me, @fabianvf do you have any question or concern?
3199c7e
to
0ed36f3
Compare
0ed36f3
to
a690186
Compare
a690186
to
68fe8ee
Compare
@yliaog can you please take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabianvf, goodspark, tigrato, yliaog The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR adds support for custom SNI values. If
tls-server-name
is set in kubeconfig, the client did not use it resulting in SSL/TLS errors if the property is required to connect to the server.Which issue(s) this PR fixes:
Fixes #1889
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: