Skip to content

Fix network status update failure with Server-Side Apply#314

Merged
salv-orlando merged 1 commit into
vmware:mainfrom
xh013325:fix-3749950
Jul 15, 2026
Merged

Fix network status update failure with Server-Side Apply#314
salv-orlando merged 1 commit into
vmware:mainfrom
xh013325:fix-3749950

Conversation

@xh013325

Copy link
Copy Markdown
Contributor

Summary

  • Clear server-managed metadata fields (managedFields, resourceVersion, and uid) from the unstructured Network object before applying it.
  • This prevents the Kubernetes API server from rejecting the Server-Side Apply request with a "metadata.managedFields must be nil" error.

Test plan

  • Verified that the codebase compiles and all unit tests pass successfully.

Made with Cursor

Clear server-managed metadata fields (managedFields, resourceVersion, and uid) from the unstructured Network object before applying it. This prevents the Kubernetes API server from rejecting the Server-Side Apply request with a "metadata.managedFields must be nil" error.

Co-authored-by: Cursor <cursoragent@cursor.com>
@xh013325
xh013325 marked this pull request as draft July 15, 2026 07:17
@xh013325
xh013325 marked this pull request as ready for review July 15, 2026 07:17

@salv-orlando salv-orlando 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

@salv-orlando
salv-orlando merged commit 78a3a5d into vmware:main Jul 15, 2026
3 checks passed
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