Skip to content

Conversation

@faiq
Copy link
Collaborator

@faiq faiq commented Nov 20, 2025

What type of PR is this?
/kind bug

What this PR does / why we need it:

If a user is using NodeadmConfigTemplate with ClusterClass We run into a bug where SSA fails if a user is removing all fields of the NodeadmConfigTemplate.Spec.Template.Spec. SSA treats this as a null object. Therefore, we are changing the property field to nullable to avoid this issue.

See kubernetes/kubernetes#117447 (comment).

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Checklist:

  • squashed commits
  • includes documentation
  • includes emoji in title
  • adds unit tests
  • adds or updates e2e tests

Release note:


@faiq faiq force-pushed the faiq/remove-omitempty-from-nodeadm branch from a3766de to 06c413f Compare November 20, 2025 21:02
@faiq faiq changed the title fix: removes omitempty from nodeadm template 🐛 fix: removes omitempty from nodeadm template Nov 20, 2025
@faiq faiq force-pushed the faiq/remove-omitempty-from-nodeadm branch from d1dcf2c to 347960b Compare November 20, 2025 21:15
@faiq faiq force-pushed the faiq/remove-omitempty-from-nodeadm branch from 347960b to 8216090 Compare November 20, 2025 21:18
@faiq faiq merged commit a8fdfb0 into main Nov 20, 2025
6 of 8 checks passed
Copy link
Collaborator

@supershal supershal left a comment

Choose a reason for hiding this comment

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

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants