Skip to content
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

add asogroups #3574

Merged
merged 1 commit into from
Jun 5, 2023
Merged

add asogroups #3574

merged 1 commit into from
Jun 5, 2023

Conversation

nojnhuh
Copy link
Contributor

@nojnhuh nojnhuh commented May 18, 2023

What type of PR is this?
/kind feature

What this PR does / why we need it:

This PR adds an ASO-backed implementation for the resource groups service.

The proposal in #3113 says that each service will be transitioned to ASO in one change where both an SDK- and ASO-backed implementation will not coexist at the same time. For only this first service, I'm opting to break that rule to better enable making further iterative progress on the common framework. This service is expected to evolve alongside those future changes until #3527 is complete.

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 #3524

Special notes for your reviewer:

This PR includes no functional changes. If you'd like to try these changes out though, here's a branch that's ready to use that makes these changes operative: main...nojnhuh:cluster-api-provider-azure:aso-wired

  • cherry-pick candidate

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 18, 2023
@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label May 18, 2023
limitations under the License.
*/

package asogroups
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion for code organization: instead of prefixing every folder name with aso it might make sense to reorganize the services folder with two sub-folders: sdk and aso (we can even add sdkv2 if needed).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will be the only service to have both ASO and SDK versions in the repo at the same time. Once we're ready for more services, I think the way the proposal describes of transitioning each service in-place will be easiest. Do you think it's still important to distinguish that in the folder structure?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so long as we're able to do a targeted, quick revert (ideally just click the github revert PR button) per service it shouldn't matter. If one or the other makes that easier then I'd vote for that.

Sorry this didn't get hashed out in the proposal PR, probably this is too low level for being declared in the proposal, I should have caught that, if so.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nojnhuh if it's a one-off and not long-lived then probably fine as-is

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CecileRobertMichon Sounds good. We can always adjust later too if needed.

@jackfrancis I think reverting in this case would be as simple as reverting the relevant commits, but we'll verify that as part of #3546.

azure/services/asogroups/groups.go Show resolved Hide resolved
azure/services/asogroups/groups.go Outdated Show resolved Hide resolved
azure/services/asogroups/spec.go Outdated Show resolved Hide resolved
@nojnhuh nojnhuh force-pushed the aso-groups branch 4 times, most recently from c3309aa to 9c07dc3 Compare May 22, 2023 19:44
@nojnhuh
Copy link
Contributor Author

nojnhuh commented May 22, 2023

Sorry for the spam, I'm finally done fiddling with this.

@nojnhuh
Copy link
Contributor Author

nojnhuh commented May 22, 2023

ok last one I promise 🤡

@willie-yao
Copy link
Contributor

/lgtm

Great work @nojnhuh !! 🚀

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 23, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: a13754791644ff977fb7d48f7013622dde012aea

Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To confirm, this code isn't actually getting used yet? is there a flag or something to enable it in tests?

@nojnhuh
Copy link
Contributor Author

nojnhuh commented May 31, 2023

To confirm, this code isn't actually getting used yet? is there a flag or something to enable it in tests?

Right, this isn't hook up to anything yet so the existing groups service will be used. This branch on my fork contains a running list of everything needed to wire up all the ASO changes so far, but there's no simple toggle for that in these changes: main...nojnhuh:cluster-api-provider-azure:aso-wired. Maybe I could open a WIP PR for that branch to get test signal?

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Jun 1, 2023

Maybe I could open a WIP PR for that branch to get test signal?

Actually I'm pretty confident tests will fail with the current state of things, especially tests doing any kind of BYO resource and upgrade tests, so maybe it's best to defer running tests in CI until the ASO stuff is a bit more fleshed out (at least through #3521)?

@CecileRobertMichon
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 5, 2023
@k8s-ci-robot k8s-ci-robot merged commit 23089fa into kubernetes-sigs:main Jun 5, 2023
@k8s-ci-robot k8s-ci-robot added this to the v1.10 milestone Jun 5, 2023
@nojnhuh nojnhuh deleted the aso-groups branch August 10, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

ASO service: groups
6 participants