-
Notifications
You must be signed in to change notification settings - Fork 432
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
make ASO adopt previously managed resources #3662
Conversation
This is ready for review, but I'd like to do some manual smoke testing since these changes aren't exercised by CI yet. /hold |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3662 +/- ##
==========================================
+ Coverage 53.88% 53.90% +0.01%
==========================================
Files 185 185
Lines 18618 18626 +8
==========================================
+ Hits 10032 10040 +8
Misses 8046 8046
Partials 540 540
☔ View full report in Codecov by Sentry. |
Looking good! /hold cancel |
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
Maybe not directly related to changes from this PR, but why naming the service asogroups
instead of asoresourcegroups
? Just to keep it in sync with the groups
service or because the name would have been too long? IMO asoresourcegroups
sounds less confusing compared to asogroups
@adriananeci: changing LGTM is restricted to collaborators In response to this:
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. |
There is a little more context here around the package name: #3574 (comment) Overall, the plan for the other packages under And in general, I'm not 100% sure all the other |
/assign @Jont828 |
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
Nice work!
LGTM label has been added. Git tree hash: 03fa33634824db8f5b96519ef41565b60d53f183
|
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CecileRobertMichon 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
The goal of this PR is to smooth the transition from non-ASO-backed CAPZ to ASO-backed CAPZ by automatically adopting pre-existing Azure resources that are identified to have been managed by a previous version of CAPZ.
Depending on the resource type, the indicator that it was managed by a previous version of CAPZ will either be the
sigs.k8s.io_cluster-api-provider-azure_cluster_*
tag on the resource in Azure or a statictrue
for resources not eligible for BYO currently, like managedclusters:cluster-api-provider-azure/azure/services/managedclusters/managedclusters.go
Lines 125 to 128 in 8e1c9ae
More context in the proposal: https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/8e1c9aead5a0c7aa7da343331c82c00364a9b9fd/docs/proposals/20230123-azure-service-operator.md#upgrade-strategy
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 #3521
Special notes for your reviewer:
This branch includes this change and the necessary plumbing to make this functional if you'd like to test this yourself: main...nojnhuh:cluster-api-provider-azure:aso-wired
TODOs:
Release note: