-
Notifications
You must be signed in to change notification settings - Fork 431
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
[WIP] Replace last usage of Azure/go-autorest #4780
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4780 +/- ##
==========================================
+ Coverage 62.45% 62.47% +0.02%
==========================================
Files 196 197 +1
Lines 16180 16196 +16
==========================================
+ Hits 10105 10119 +14
- Misses 5335 5336 +1
- Partials 740 741 +1 ☔ View full report in Codecov by Sentry. |
tasty |
/retest |
/lgtm |
LGTM label has been added. Git tree hash: 1ed3ae7644484a6f2629ca8c0cc1181ce7093c98
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jackfrancis 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 |
) | ||
|
||
// AzureClients contains all the Azure clients used by the scopes. | ||
type AzureClients struct { | ||
auth.EnvironmentSettings | ||
EnvironmentSettings |
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 a little confused about how we were really using this type before if not just to store data. Isn't this a SDKv1 construct, and presumably not usable with SDKv2? Should we be utilizing this instead? https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/[email protected]/cloud
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 am also confused; AFAICT we've just been using this as an environment variable container and I've tried to keep the usages intact so as not to break things, but it may all amount to a no-op honestly.
Let me look more closely at Configuration
and see if it's a more functional replacement for this go-autorest code path. Thanks @nojnhuh!
/hold to address @nojnhuh's comment |
PR needs rebase. 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. |
/retitle [WIP] Replace last usage of Azure/go-autorest |
@mboersma: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
/kind cleanup
What this PR does / why we need it:
Replaces the last usages of the deprecated Azure/go-autorest library.
Which issue(s) this PR fixes:
Fixes #2974
Special notes for your reviewer:
This mostly adapts the
Environment
code from go-autorest that we still seem to be using.TODOs:
Release note: