Skip to content

✨ allow switching from filter.name to id of network and subnets in OSC spec#2518

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
okozachenko1203:allow-openstackcluster-network-id-change
May 9, 2025
Merged

✨ allow switching from filter.name to id of network and subnets in OSC spec#2518
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
okozachenko1203:allow-openstackcluster-network-id-change

Conversation

@okozachenko1203
Copy link
Contributor

@okozachenko1203 okozachenko1203 commented Apr 16, 2025

What this PR does / why we need it:
This PR allows switching from spec.network.filter.name to spec.network.id in OpenstackCluster webhook.
Same for spec.subnets.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

Special notes for your reviewer:

TODOs:

  • squashed commits
  • if necessary:
    • includes documentation
    • adds unit tests

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 16, 2025
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 16, 2025
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 16, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @okozachenko1203. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 16, 2025
@netlify
Copy link

netlify bot commented Apr 16, 2025

Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!

Name Link
🔨 Latest commit 417ac30
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/68141fffe903e30008a245d2
😎 Deploy Preview https://deploy-preview-2518--kubernetes-sigs-cluster-api-openstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

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

/ok-to-test
Seems safe and ok to me
/lgtm

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 16, 2025
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 16, 2025
@lentzi90
Copy link
Contributor

lentzi90 commented Apr 16, 2025

I think the test failure is due to a typo. It should be capital N in Spec.Network

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 16, 2025
@mnaser
Copy link
Contributor

mnaser commented Apr 16, 2025

@okozachenko1203 do you think we can somehow exercise this in any sort of test to allow validating the change?

@mnaser
Copy link
Contributor

mnaser commented Apr 16, 2025

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 17, 2025
@okozachenko1203
Copy link
Contributor Author

/ok-to-test

@mnaser
Copy link
Contributor

mnaser commented Apr 17, 2025

/ok-to-test

@okozachenko1203 just FYI, you need to be a member of the kubernetes-sigs GitHub org in order to be able to run that.

@mnaser
Copy link
Contributor

mnaser commented Apr 21, 2025

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 21, 2025
@EmilienM
Copy link
Contributor

I'm not against this PR but why don't we also do Subnets and other resources in that case?

Copy link
Contributor

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

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

Please squash the commits.
@EmilienM also has a good point. Why do it only for network? We could do this for all resources that follow the same pattern

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 22, 2025
@okozachenko1203 okozachenko1203 changed the title ✨ allow switching from network.filter.name to network.id in OSC spec ✨ allow switching from filter.name to id of network and subnets in OSC spec Apr 22, 2025
@okozachenko1203
Copy link
Contributor Author

@EmilienM @lentzi90 please review again

Copy link
Contributor

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

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

/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 9, 2025
@mdbooth
Copy link
Contributor

mdbooth commented May 9, 2025

This is great.

I would still really like to ditch the webhooks and replace it all with CEL. I don't think we're currently doing anything that can't be defined in CEL. This would be one of the more interesting examples, though!

/lgtm
/approve

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lentzi90, mdbooth

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@lentzi90
Copy link
Contributor

lentzi90 commented May 9, 2025

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 9, 2025
@k8s-ci-robot k8s-ci-robot merged commit d884dd5 into kubernetes-sigs:main May 9, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from Inbox to Done in CAPO Roadmap May 9, 2025
@mnaser
Copy link
Contributor

mnaser commented May 9, 2025

/cherry-pick release-0.12 release-0.11 release-0.10

@k8s-infra-cherrypick-robot

@mnaser: new pull request created: #2540

Details

In response to this:

/cherry-pick release-0.12 release-0.11 release-0.10

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.

@okozachenko1203
Copy link
Contributor Author

/cherry-pick release-0.11

@k8s-infra-cherrypick-robot

@okozachenko1203: only kubernetes-sigs org members may request cherry picks. If you are already part of the org, make sure to change your membership to public. Otherwise you can still do the cherry-pick manually.

Details

In response to this:

/cherry-pick release-0.11

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.

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. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants