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

Simplify & Fix Prefix / PrefixAllocation #408

Merged
merged 1 commit into from
May 10, 2022
Merged

Conversation

adracus
Copy link
Contributor

@adracus adracus commented May 10, 2022

Introducing a Phase for Prefix / PrefixAllocation as we have it
for e.g. VirtualIP. This makes more sense for several reasons:

  • Code reading and writing the phase is much simpler
  • Transitioning between multiple different states and encoding it into a
    Reason field of a condition fuzzes the line of when to actually
    update the LastTransitionTime of a condition (that actually should
    only change when updating between Unknown, True and False).

Fix some additional issues.

Introducing a `Phase` for `Prefix` / `PrefixAllocation` as we have it
for e.g. `VirtualIP`. This makes more sense for several reasons:
* Code reading and writing the phase is much simpler
* Transitioning between multiple different states and encoding it into a
  `Reason` field of a condition fuzzes the line of when to actually
  update the `LastTransitionTime` of a condition (that actually should
  only change when updating between `Unknown`, `True` and `False`).

Fix some additional issues.
@adracus adracus requested a review from a team as a code owner May 10, 2022 07:05
@github-actions github-actions bot added api-change bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request ipam networking size/XXL labels May 10, 2022
@adracus adracus merged commit 61270e2 into main May 10, 2022
@adracus adracus deleted the feature/fix-simplify-prefix branch May 10, 2022 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request ipam networking size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants