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

feat(vmip): validate IP address range and improve IP address service #228

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

LopatinDmitr
Copy link
Contributor

@LopatinDmitr LopatinDmitr commented Jul 22, 2024

Description

  • Add handling case, when trying to create VirtualMachineIPAddress outside the range specified in the module settings
  • Add reason "VirtualMachineIPAddressOutOfTheValidRange" for "Bound" condition
  • Refactor ip_address_service with the use of net.IPNet to netip.Addr
  • Fix frequent reconciles for an object with the 'Released' status
  • Add write to events, when the selected VirtualMachineIPLease belongs to a different namespace

Why do we need it, and what problem does it solve?

What is the expected result?

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

@LopatinDmitr LopatinDmitr force-pushed the feat/vmip/add-validating-ip-address branch from 8273481 to f86f4f8 Compare July 22, 2024 20:11
@LopatinDmitr LopatinDmitr marked this pull request as draft July 22, 2024 20:18
@LopatinDmitr LopatinDmitr force-pushed the feat/vmip/add-validating-ip-address branch from f86f4f8 to 633f447 Compare July 22, 2024 20:21
@LopatinDmitr LopatinDmitr force-pushed the feat/vmip/apply-new-design branch from c980d23 to b73a1e2 Compare July 24, 2024 08:13
Base automatically changed from feat/vmip/apply-new-design to main July 24, 2024 13:58
@LopatinDmitr LopatinDmitr force-pushed the feat/vmip/add-validating-ip-address branch 3 times, most recently from 281c00f to 26e10cc Compare July 25, 2024 10:32
@LopatinDmitr LopatinDmitr marked this pull request as ready for review July 25, 2024 10:48
@LopatinDmitr LopatinDmitr requested review from diafour and Isteb4k July 25, 2024 10:48
@Isteb4k Isteb4k self-requested a review July 25, 2024 14:26
@LopatinDmitr LopatinDmitr force-pushed the feat/vmip/add-validating-ip-address branch 3 times, most recently from 6c914d5 to 8b85d82 Compare July 26, 2024 12:41
@LopatinDmitr LopatinDmitr force-pushed the feat/vmip/add-validating-ip-address branch 2 times, most recently from bf8d7d9 to d81492c Compare July 29, 2024 11:30
- Add checking the ip address for compliance with the specified in the CIDR module settings
- The operation of the controller has been redesigned from using of net.IPNet to netip.Addr

Signed-off-by: Dmitry Lopatin <[email protected]>
@LopatinDmitr LopatinDmitr force-pushed the feat/vmip/add-validating-ip-address branch from d81492c to 3d69061 Compare July 29, 2024 12:26
LopatinDmitr and others added 2 commits July 29, 2024 17:11
- Fix frequent reconciles for an object with the 'Released' status
- Add write to events, when the selected VirtualMachineIPLease belongs to a different namespace

Signed-off-by: Dmitry Lopatin <[email protected]>
@LopatinDmitr LopatinDmitr force-pushed the feat/vmip/add-validating-ip-address branch from 3d69061 to 41968e9 Compare July 29, 2024 14:11
@LopatinDmitr LopatinDmitr changed the title feat(vmip): add validating ip address feat(vmip): validate IP address range and improve IP address service Jul 30, 2024
@LopatinDmitr LopatinDmitr merged commit 5790e28 into main Jul 30, 2024
1 check passed
@LopatinDmitr LopatinDmitr deleted the feat/vmip/add-validating-ip-address branch July 30, 2024 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants