Skip to content

Commit 9f4ef81

Browse files
committed
fix: removes omitempty from nodeadm template
1 parent 88212fb commit 9f4ef81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bootstrap/eks/api/v1beta2/nodeadmconfigtemplate_type.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ type NodeadmConfigTemplateSpec struct {
2727

2828
// NodeadmConfigTemplateResource defines the Template structure.
2929
type NodeadmConfigTemplateResource struct {
30+
// Spec represents the NodeadmConfig each object created from the template will become.
31+
// We are setting nullable to avoid this issue:
32+
// https://github.com/kubernetes/kubernetes/issues/117447#issuecomment-2127733969
33+
// where we cannot remove all fields with an SSA patch if they were previously set.
34+
// +nullable
3035
Spec NodeadmConfigSpec `json:"spec,omitempty"`
3136
}
3237

0 commit comments

Comments
 (0)