OCPBUGS-87815: [release-4.21] Add omitempty to vSphere and Nutanix MachinePool slice fields#10607
Conversation
… fields Add omitempty to optional slice fields (DataDisks, GPUs) in vSphere and Nutanix MachinePool types. Without omitempty, marshaling a zero-valued struct emits dataDisks: null / gpus: null, which older installer payloads treat as unknown fields and emit warnings during cluster provisioning via automation tools (Hive, assisted-service). Azure's DataDisks already carries omitempty; this brings vSphere and Nutanix into alignment. Assisted-by: Codex 5.3 Co-authored-by: Cursor <cursoragent@cursor.com>
|
@chdeshpa-hue: This pull request references Jira Issue OCPBUGS-85509, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@chdeshpa-hue: This pull request references Jira Issue OCPBUGS-87815, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@chdeshpa-hue: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
Fix included in release 5.0.0-0.nightly-2026-06-08-075337 |
Summary
Cherry-pick of #10551 to release-4.21.
Adds
omitemptyto theDataDisksJSON tag on vSphere and Nutanix MachinePool structs, preventing empty slice serialization that causes unknown-field warnings when hive revendors these types and generates install-configs for older payloads.Fixes: https://issues.redhat.com/browse/OCPBUGS-85509
/cherry-pick-from #10551
Made with Cursor