Bug 1944581: Preserve AuthInfo when switching projects#692
Bug 1944581: Preserve AuthInfo when switching projects#692openshift-merge-robot merged 1 commit intoopenshift:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: feichashao The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/retest |
3 similar comments
|
/retest |
|
/retest |
|
/retest |
|
The The first commit preserves The second commit remove the presevation of The |
|
/retest |
|
Testes passed. @soltysh could you take a look? |
|
@feichashao: This pull request references Bugzilla bug 1944581, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
soltysh
left a comment
There was a problem hiding this comment.
This looks good, please squash changes and I'll tag
d7fd77c to
8062b92
Compare
|
/retest |
1 similar comment
|
/retest |
|
@feichashao: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: feichashao, soltysh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@feichashao: All pull requests linked via external trackers have merged: Bugzilla bug 1944581 has been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/cherry-pick release-4.7 |
|
@wanghaoran1988: new pull request created: #832 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This is a possible fix for #647
Before this patch, if the openshift cluster is behind a cluster proxy (eg. kubectl proxy), and the authentication method is not token,
oc project <project-name>will create a new user inkubeconfig, with blank info. This will lead to furtheroccommands return authentication error.With this patch, when
oc project <project-name>creating a newkubeconfig, it will preserve all theAuthInfofromRESTConfig, so that it won't break the customized settings.clientcmdapiwill handle the null pointer and null strings, so it won't break the existingoc loginoroc projectmechanism.