cluster-api-provider-azure
cluster-api-provider-azure copied to clipboard
Use GetAtScope() to get tags when checking if a resource is managed
What type of PR is this? /kind feature
What this PR does / why we need it: Use GetAtScope() to get tags when checking if a resource is managed so we don't need to get the entire resource.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1899
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs:
- [ ] squashed commits
- [ ] includes documentation
- [ ] adds unit tests
Release note:
@CecileRobertMichon I think this is ready for a final pass of reviews!
/retest
This is such an awesome, often-underappreciated change, thanks @Jont828!
/lgtm
@CecileRobertMichon do we feel confident merging this in at the end of the 1.6 dev cycle? I think the mock tests tell the story here that this is non-breaking, but wonder if want more mileage on this before we release it.
/lgtm /approve
[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
- ~~OWNERS~~ [jackfrancis]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment