Skip to content

crd: add omitempty attribute to ownerpod name#10

Merged
maiqueb merged 1 commit into
k8snetworkplumbingwg:mainfrom
maiqueb:add-omit-empty-to-owner-pod
Aug 7, 2025
Merged

crd: add omitempty attribute to ownerpod name#10
maiqueb merged 1 commit into
k8snetworkplumbingwg:mainfrom
maiqueb:add-omit-empty-to-owner-pod

Conversation

@maiqueb

@maiqueb maiqueb commented Aug 7, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@maiqueb maiqueb requested a review from qinqon August 7, 2025 13:50

@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
/pprove

@kyrtapz

kyrtapz commented Aug 7, 2025

Copy link
Copy Markdown

@maiqueb is there a reason why the OwnerPod field

OwnerPod OwnerPod `json:"ownerPod,omitempty"`
is not a pointer?
Even with the changes here the marshaller will just return an empty struct.

@maiqueb

maiqueb commented Aug 7, 2025

Copy link
Copy Markdown
Collaborator Author

@maiqueb is there a reason why the OwnerPod field

OwnerPod OwnerPod `json:"ownerPod,omitempty"`

is not a pointer?
Even with the changes here the marshaller will just return an empty struct.

No. I can make it a pointer.

@maiqueb maiqueb force-pushed the add-omit-empty-to-owner-pod branch from e19b84e to dec9495 Compare August 7, 2025 13:55
Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
@maiqueb maiqueb force-pushed the add-omit-empty-to-owner-pod branch from dec9495 to 3b2bb9b Compare August 7, 2025 13:57
@maiqueb

maiqueb commented Aug 7, 2025

Copy link
Copy Markdown
Collaborator Author

@kyrtapz how about now ?

@kyrtapz

kyrtapz commented Aug 7, 2025

Copy link
Copy Markdown

/lgtm

@maiqueb maiqueb merged commit d97058c into k8snetworkplumbingwg:main Aug 7, 2025
1 check passed
@maiqueb maiqueb deleted the add-omit-empty-to-owner-pod branch August 7, 2025 14:01
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