-
Notifications
You must be signed in to change notification settings - Fork 533
feat: add a proxy url field to kubefed clusters #1377
feat: add a proxy url field to kubefed clusters #1377
Conversation
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. Wonder if we could have an integration or e2e test for this?
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 with some nits. Also, can we get an integration or e2e test for this?
ecf203c
to
3aef383
Compare
@jimmidyson Yes, I agree. I'll add some tests to this PR to see how much we can test it without having a realistic infrastructure where to use a proxy. |
3aef383
to
2f39197
Compare
2f39197
to
f4ac131
Compare
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.
Overall LGTM, few questions.
Thanks @hectorj2f
Suggestion: Again about the management of commits.
This commit is of no use, does not do what the title says and pollutes history. Please consider removing/squashing it.
Signed-off-by: Hector Fernandez <[email protected]> Co-authored-by: Hector Fernandez <[email protected]> Co-authored-by: Martin Hrabovcin <[email protected]>"
Signed-off-by: Hector Fernandez <[email protected]>
Signed-off-by: Hector Fernandez <[email protected]>
f4ac131
to
0699b0a
Compare
Signed-off-by: Hector Fernandez <[email protected]>
0699b0a
to
840d377
Compare
@jimmidyson I added an integration test to exercise the join cluster operation. I find this test and the others in this PR enough to validate this new property. |
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.
I'm missing a test actually performing tests of the proxy functionality but let's take what we have. ;-)
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hectorj2f, irfanurrehman, makkes 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 |
/lgtm |
What this PR does / why we need it:
There are certain scenarios where a kubefed cluster can be behind a NAT gateway or DMZ. kubefed needs to be able to talk to these specific clusters using a proxy url. In addition, kubernetes supports (k8s > v1.19) the definition of a proxy-url field in the kubeconfig for the clients. This simplifies the communication against these clusters.
Kubefed clusters could require specifying a Proxy URL in addition to a CaBundle, therefore we should consider adding a ProxyURL field to the kubefed cluster object.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1376
Special notes for your reviewer: