-
Notifications
You must be signed in to change notification settings - Fork 501
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
load cloud provider plugins when using tkctl #756
Conversation
Hi contributor, thanks for your PR. This patch needs to be approved by someone of admins. They should reply with "/ok-to-test" to accept this PR for running test automatically. |
1 similar comment
Hi contributor, thanks for your PR. This patch needs to be approved by someone of admins. They should reply with "/ok-to-test" to accept this PR for running test automatically. |
/ok-to-test |
@yeya24 IMHO, it is better to load all the auth plugins |
OK. Let me recheck it. Do you mean gcp, aws and alicloud? Do I need to add other plugins? |
Importing all auth plugins is sufficient I suppose |
Thanks for pointing out this. @aylei Updated, PTAL. |
@yeya24
|
"github.com/pingcap/tidb-operator/pkg/tkctl/config" | ||
|
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.
Remove this empty line.
Seems in the latest client-go, the code is OK. https://github.com/kubernetes/client-go/blob/4f902818859a531e018f805b2d3597f14bf2c494/plugin/pkg/client/auth/azure/azure.go#L254 return &azureToken{
token: adal.Token{
AccessToken: accessToken,
RefreshToken: refreshToken,
ExpiresIn: json.Number(expiresIn),
ExpiresOn: json.Number(expiresOn),
NotBefore: json.Number(expiresOn), |
After digging into this I found out that this code was fixed in client-go v10.0.0, which is compatible for k8s 1.13+. build command-line-arguments: cannot load k8s.io/api/admissionregistration/v1alpha1: cannot find module providing package k8s.io/api/admissionregistration/v1alpha1 And the error above can be fixed if we update k8s related package version to 1.13+. See issue kubernetes/client-go#551 Currently we are still using 1.12.5, do we have any plan to update it recently? If not, I think it is better to not add azure auth plugin now. |
@yeya24 I'm ok with not importing Azure auth plugin |
Signed-off-by: yeya24 <[email protected]>
Need review for this PR. |
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
/run-e2e-tests |
/run-e2e-in-kind |
/run-e2e-in-kind |
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
/run-e2e-in-kind |
@yeya24 Thanks! |
cherry pick to release-1.0 failed |
Signed-off-by: yeya24 [email protected]
I' m sorry that I don't have a gcp environment. Can you make a test for this PR? @aylei 😄
What problem does this PR solve?
#721
What is changed and how does it work?
Check List
Tests
Code changes
Side effects
Related changes
Does this PR introduce a user-facing change?: