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

Ensure status field is deeply empty in CreateOrUpdate #811

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

tpantelis
Copy link
Contributor

...meaning any nested map fields are also empty. If a resource type has a non-pointer struct field, it appears as an empty map when converted to Unstructured so merely checking len on the status map doesn't suffice. Specifically this was observed with the LoadBalancer field in the Service status. Added function to check if a map is deeply empty.

@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr811/tpantelis/ensure_empty_status

...meaning any nested map fields are also empty. If a resource type
has a non-pointer struct field, it appears as an empty map when
converted to Unstructured so merely checking 'len' on the status map
doesn't suffice. Specifically this was observed with the LoadBalancer
field in the Service status. Added function to check if a map is deeply
empty.

Signed-off-by: Tom Pantelis <[email protected]>
@tpantelis tpantelis force-pushed the ensure_empty_status branch from ed51c15 to 576d523 Compare December 7, 2023 12:54
@aswinsuryan aswinsuryan merged commit b2ed2d1 into submariner-io:devel Dec 8, 2023
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr811/tpantelis/ensure_empty_status]

@tpantelis tpantelis deleted the ensure_empty_status branch July 17, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants