-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(timeout): Implement customizable timeout for Azure CLI token ret… #362
Conversation
@microsoft-github-policy-service agree company="AIFI" |
relevant message from a maintainer of azure-sdk-for-go/sdk/azidentity/ |
Looking forward to it! |
d8cd938
to
18dd1ad
Compare
@weinong can you run the CI please?
|
a7f5109
to
4b47dd3
Compare
I believe I also fixed the tests. |
c256a27
to
19bb63e
Compare
a005fb1
to
35dd4b4
Compare
linting is now passing my changes locally as well |
35dd4b4
to
0fa7d49
Compare
I now see the timeout in both of the sub commands, and I am no longer wedging the --timeout into the main kubelogin command. ./kubelogin get-token --timeout 90s pkg/cmd/ -> I'm only expecting to see it as an option in the get-token
do you know what I did wrong? |
@Aricg , |
0fa7d49
to
168c480
Compare
Hi @weinong I only need --timeout for I don't see convert-kubeconfig using AzureCLIToken from https://github.com/Azure/azure-sdk-for-go/blob/7d4a3cbaadd5bf9f16322e1e2c673a633f146fb1/sdk/azidentity/azure_cli_credential.go#L105-L110
|
@Aricg Please fix up the UT, though! |
168c480
to
5b3b93c
Compare
:) |
4f450da
to
52ca6b1
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #362 +/- ##
==========================================
+ Coverage 65.02% 65.16% +0.13%
==========================================
Files 23 23
Lines 1710 1728 +18
==========================================
+ Hits 1112 1126 +14
- Misses 536 539 +3
- Partials 62 63 +1 ☔ View full report in Codecov by Sentry. |
52ca6b1
to
bb77dd6
Compare
…rieval in kubelogin get-token This commit introduces the ability to specify a custom timeout for Azure CLI token retrieval within the kubelogin get-token subcomand. The `AzureCLIToken` struct now includes a `timeout` field, allowing users to set a specific timeout duration.
bb77dd6
to
851453c
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.
LGTM
This commit introduces the ability to specify a custom timeout for Azure CLI token retrieval within the kubelogin package. The
AzureCLIToken
struct now includes atimeout
field, allowing users to set a specific timeout duration.