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

Add iprequests attributes 1.22 #8

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

maiqueb
Copy link
Collaborator

@maiqueb maiqueb commented Sep 19, 2024

Tested locally against a kind kube-1.31 cluster.

Depends-on: #7

This commits adds attributes to the spec:
- spec.IPRequests: user can specify the IP address for an interface
- status.Conditions: controller can report success / errors while
  reserving IP addresses for a workload
- status.OwnerPod: controller reports which pod owns the allocation

The first two conditions are used to support a feature where the user
indicates ahead of time which IP address they want their VMs to have,
while the latter can be used to provide information to the user, and to
ensure that a claim in use cannot be used by another workload.

Signed-off-by: Miguel Duarte Barroso <[email protected]>
This required the `go generate` targets to be adapted to use the new
API.

Signed-off-by: Miguel Duarte Barroso <[email protected]>
The provide cmd had to be updated to comply with the validations
introduced in this PR.

Signed-off-by: Miguel Duarte Barroso <[email protected]>
@maiqueb maiqueb force-pushed the add-iprequests-attributes-1.22 branch 3 times, most recently from 7019f44 to b942967 Compare September 19, 2024 14:16
Signed-off-by: Miguel Duarte Barroso <[email protected]>
@maiqueb maiqueb force-pushed the add-iprequests-attributes-1.22 branch from b942967 to 36b122e Compare September 19, 2024 14:19
Signed-off-by: Miguel Duarte Barroso <[email protected]>
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.

1 participant