Skip to content

Add conditions status#9

Merged
maiqueb merged 6 commits into
k8snetworkplumbingwg:mainfrom
maiqueb:add-conditions-status
Jun 12, 2025
Merged

Add conditions status#9
maiqueb merged 6 commits into
k8snetworkplumbingwg:mainfrom
maiqueb:add-conditions-status

Conversation

@maiqueb

@maiqueb maiqueb commented May 16, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@maiqueb maiqueb force-pushed the add-conditions-status branch 3 times, most recently from 42da226 to 1d53b6d Compare May 16, 2025 15:31
@maiqueb maiqueb requested a review from qinqon May 16, 2025 15:35
Comment thread pkg/crd/ipamclaims/v1alpha1/types.go Outdated
// The list of IP addresses (v4, v6) that were allocated for the pod interface
IPs []string `json:"ips"`
// The name of the pod holding the IPAMClaim
OwnerPod string `json:"ownerPod"`

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

let's make this also "omitempty".

Comment thread pkg/crd/ipamclaims/v1alpha1/types.go Outdated
Comment thread pkg/crd/ipamclaims/v1alpha1/types.go
Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
@maiqueb maiqueb force-pushed the add-conditions-status branch from 1d53b6d to f219962 Compare May 30, 2025 10:52
@maiqueb

maiqueb commented May 30, 2025

Copy link
Copy Markdown
Collaborator Author

@qinqon could you lgtm ?

@qinqon

qinqon commented May 30, 2025

Copy link
Copy Markdown
Member

/lgtm
/approve

maiqueb added 5 commits June 11, 2025 12:07
This commits adds attributes to the status sub-resource:
- status.Conditions: controller can report success / errors while
  reserving IP addresses for a workload
- status.OwnerPod: controller reports which pod owns the allocation

Adding conditions to the status is used to inform the user of allocation
errors (i.e. no IP addresses available in the subnet, the requested IP
addr was already in use, etc) while adding a reference to which pod owns the
allocation is 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 <mdbarroso@redhat.com>
Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
@maiqueb maiqueb force-pushed the add-conditions-status branch from f219962 to e776a9f Compare June 11, 2025 10:08

@qinqon qinqon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@maiqueb

maiqueb commented Jun 12, 2025

Copy link
Copy Markdown
Collaborator Author

These IPAMClaim status updates were approved in the k8snetworkplumbingwg which occurred June 12th, 2025.

Logged in the meeting's agenda.

Going for a merge.

@maiqueb maiqueb merged commit cc60377 into k8snetworkplumbingwg:main Jun 12, 2025
1 check passed
@maiqueb maiqueb deleted the add-conditions-status branch June 12, 2025 16:36
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.

2 participants