Allow setting multiple path in KUBECONFIG#4138
Allow setting multiple path in KUBECONFIG#4138qiujian16 wants to merge 2 commits intoistio:masterfrom qiujian16:qj-kubeconfig-mutlipath
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Assign the PR to them by writing The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:You can indicate your approval by writing |
There was a problem hiding this comment.
This is used by both the pilot server and istioctl. I believe that the issue you are trying to fix is from istioctl. I don't think pilot is ready to support this yet.
There was a problem hiding this comment.
@baodongli I do not think there is difference between pilot server and istioctl...if pilot server does not specify kubeconfig, in cluster config will be used. This is to ensure that the kubeconfig loaded by istioctl is the same as what is loaded by kubernetes client.
There was a problem hiding this comment.
Can you put this to a helper function name as ResolveMultiPathConfig or some others
There was a problem hiding this comment.
Add a new test for this in controller_test.go?
Codecov Report
@@ Coverage Diff @@
## master #4138 +/- ##
=======================================
- Coverage 71% 71% -<1%
=======================================
Files 324 317 -7
Lines 29547 28882 -665
=======================================
- Hits 20763 20218 -545
+ Misses 7531 7443 -88
+ Partials 1253 1221 -32
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Why not put the in-cluster logic to LoadConfigFromMultiPath?
|
/ok-to-test |
|
/retest |
|
@qiujian16 PR needs rebase |
|
This pull request has been automatically marked as stale because it has not had activity in the last 2 weeks. It will be closed in 2 weeks if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
This pull request has been automatically closed because it has not had activity in the last month. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Change to user default loading rules that will automatically load config in KUBECONFIG environment variable.
fix #4081