Convert inboundnatrules service to SDKv2#3882
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3882 +/- ##
==========================================
+ Coverage 55.78% 55.95% +0.16%
==========================================
Files 190 190
Lines 19493 19477 -16
==========================================
+ Hits 10874 10898 +24
+ Misses 8005 7965 -40
Partials 614 614
☔ View full report in Codecov by Sentry. |
|
/test pull-cluster-api-provider-azure-e2e-workload-upgrade |
|
/test pull-cluster-api-provider-azure-apiversion-upgrade |
willie-yao
left a comment
There was a problem hiding this comment.
Overall this looks great! Just a minor comment from my end
59afd83 to
cdfb42e
Compare
cdfb42e to
154edc2
Compare
|
The only test this has failed is the workload-upgrade job, on known bug #3875. |
| List(context.Context, string, string) (result []armnetwork.InboundNatRule, err error) | ||
| Get(context.Context, azure.ResourceSpecGetter) (result interface{}, err error) | ||
| CreateOrUpdateAsync(context.Context, azure.ResourceSpecGetter, interface{}) (result interface{}, future azureautorest.FutureAPI, err error) | ||
| DeleteAsync(context.Context, azure.ResourceSpecGetter) (future azureautorest.FutureAPI, err error) | ||
| IsDone(context.Context, azureautorest.FutureAPI) (isDone bool, err error) | ||
| Result(context.Context, azureautorest.FutureAPI, string) (result interface{}, err error) | ||
| CreateOrUpdateAsync(context.Context, azure.ResourceSpecGetter, string, interface{}) (result interface{}, poller *runtime.Poller[armnetwork.InboundNatRulesClientCreateOrUpdateResponse], err error) | ||
| DeleteAsync(context.Context, azure.ResourceSpecGetter, string) (poller *runtime.Poller[armnetwork.InboundNatRulesClientDeleteResponse], err error) |
There was a problem hiding this comment.
Not strictly related to these changes, but it looks like List is the only method called on the interface type, so I think the others can be removed.
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 21fa1c9b022d72057f9aaee191861a495c666435 |
154edc2 to
84a4ccd
Compare
|
@mboersma: The following test 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. 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. |
84a4ccd to
ab89b14
Compare
ab89b14 to
3ef6caa
Compare
|
LGTM label has been added. DetailsGit tree hash: 655a15ce6c98794bb3477474b5ac1eedac4d3618 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nojnhuh 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Converts the inboundnatrules service to azure-sdk-for-go version 2 and the
asyncpollerframework for long-running operations.Which issue(s) this PR fixes:
Fixes #3881
Special notes for your reviewer:
TODOs:
Release note: