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

Remove subnet, first and last from the pool spec and create v1alpha2 Pool #123

Merged
merged 1 commit into from Jun 26, 2023

Conversation

christianang
Copy link
Contributor

Following what was discussed in #71. This PR removes subnet, first, and last from the pool spec in favor of a user using the new addresses field.

This PR will support a new v1alpha2 version for the InClusterIPPool and GlobalInClusterIPPool. In addition it will convert v1alpha1 resources to v1alpha2 resource using a conversion webhook. First and Last will be converted to use an addresses range in the new pool spec.

The controller and default/validation webhooks are configured to only support v1alpha2 pools and it is expected that the conversion webhook will convert v1alpha1 resources to v1alpha2 beforehand.

We have also added conversion-gen to the Makefile to support future conversions.

Fixes #71

@christianang christianang force-pushed the remove-old-pool-fields branch 5 times, most recently from 35277ad to 1ee66b5 Compare April 18, 2023 22:25
@christianang
Copy link
Contributor Author

@schrej I have rebased this PR and included the new changes from the pool PR. This should be ready for review. We will probably serialize PRs a bit and leave the other PRs alone until this one is merged to avoid multiple rebases since this PR is fairly significant.

api/v1alpha1/inclusterippool_conversion.go Outdated Show resolved Hide resolved
@christianang christianang force-pushed the remove-old-pool-fields branch 2 times, most recently from d149cf1 to c8d841c Compare May 15, 2023 19:09
@christianang christianang requested a review from schrej May 15, 2023 20:44
api/v1alpha1/conversion.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 6, 2023
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jun 15, 2023
@christianang christianang force-pushed the remove-old-pool-fields branch 2 times, most recently from 8d16f7a to add02df Compare June 15, 2023 21:13
- removes subnet, first, and last from the pool spec
- add new converstion webhook for v1alpha1 to v1alpha2 pools

Co-authored-by: Christian Ang <angc@vmware.com>
Co-authored-by: Aidan Obley <aobley@vmware.com>
Co-authored-by: Tyler Schultz <tschultz@vmware.com>
@schrej
Copy link
Member

schrej commented Jun 26, 2023

/lgtm
/approve

Thank you! And sorry that this was a bit slow, lost track of it at some point.

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: christianang, schrej

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 26, 2023
@k8s-ci-robot k8s-ci-robot merged commit 157ecc2 into kubernetes-sigs:main Jun 26, 2023
5 checks passed
@tylerschultz tylerschultz deleted the remove-old-pool-fields branch June 29, 2023 20:39
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
None yet
Development

Successfully merging this pull request may close these issues.

Pools fail to render the first/last - start/end IP addresses in the kubernetes cli
6 participants