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

⚠️ SubnetFilter to SubnetParam #1971

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

mdbooth
Copy link
Contributor

@mdbooth mdbooth commented Mar 26, 2024

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 26, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mdbooth

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

Copy link

netlify bot commented Mar 26, 2024

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

Name Link
🔨 Latest commit 4d85f6f
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/6605665216f06e0008e4f08f
😎 Deploy Preview https://deploy-preview-1971--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.

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 26, 2024
@@ -125,11 +144,25 @@ type SubnetFilter struct {
CIDR string `json:"cidr,omitempty"`
IPv6AddressMode string `json:"ipv6AddressMode,omitempty"`
IPv6RAMode string `json:"ipv6RAMode,omitempty"`
ID string `json:"id,omitempty"`

FilterByNeutronTags `json:",inline"`
}
Copy link
Contributor

@dulek dulek Mar 26, 2024

Choose a reason for hiding this comment

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

We could add comments and some validations here:

  • Name and description has max length of 255 in Neutron.
  • ProjectID is uuid.uuid4().hex which passes K8s UUID validation.
  • IPVersion is an enum of 4 or 6.
  • GatewayIP is IPv4 or IPv6 address.
  • CIDR is CIDR.
  • IPv6*Mode can be enums, but maybe here it's better to leave them unvalidated, to not require API update on new Neutron features.

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 thought about that and I deliberately didn't do it because:

  • It can easily be a follow-on
  • The code-churn would be different to the code churn of this PR
  • This is big enough already!

@mdbooth
Copy link
Contributor Author

mdbooth commented Mar 26, 2024

/test pull-cluster-api-provider-openstack-e2e-full-test

@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 27, 2024
@mdbooth mdbooth force-pushed the subnetparam branch 2 times, most recently from 0e15a90 to 826eeda Compare March 27, 2024 17:43
@mdbooth
Copy link
Contributor Author

mdbooth commented Mar 27, 2024

/test pull-cluster-api-provider-openstack-e2e-full-test

@mdbooth mdbooth mentioned this pull request Mar 27, 2024
5 tasks
@mdbooth
Copy link
Contributor Author

mdbooth commented Mar 27, 2024

Looks like a network-related flake

/test pull-cluster-api-provider-openstack-e2e-full-test

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 28, 2024
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 28, 2024
@mdbooth
Copy link
Contributor Author

mdbooth commented Mar 28, 2024

/test pull-cluster-api-provider-openstack-e2e-full-test

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.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 28, 2024
@mdbooth mdbooth mentioned this pull request Mar 28, 2024
5 tasks
@mdbooth
Copy link
Contributor Author

mdbooth commented Mar 28, 2024

/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 Mar 28, 2024
@k8s-ci-robot k8s-ci-robot merged commit de29a18 into kubernetes-sigs:main Mar 28, 2024
10 checks passed
@mdbooth mdbooth deleted the subnetparam branch March 28, 2024 16:32
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. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants