diff --git a/pkg/types/nutanix/machinepool.go b/pkg/types/nutanix/machinepool.go index 8bf667fc69e..c6c5479f7c1 100644 --- a/pkg/types/nutanix/machinepool.go +++ b/pkg/types/nutanix/machinepool.go @@ -61,12 +61,12 @@ type MachinePool struct { // GPUs is a list of GPU devices to attach to the machine's VM. // +listType=set // +optional - GPUs []machinev1.NutanixGPU `json:"gpus"` + GPUs []machinev1.NutanixGPU `json:"gpus,omitempty"` // DataDisks holds information of the data disks to attach to the Machine's VM // +listType=set // +optional - DataDisks []DataDisk `json:"dataDisks"` + DataDisks []DataDisk `json:"dataDisks,omitempty"` // FailureDomains optionally configures a list of failure domain names // that will be applied to the MachinePool diff --git a/pkg/types/vsphere/machinepool.go b/pkg/types/vsphere/machinepool.go index 1a0fdb06e32..ff65a0161f5 100644 --- a/pkg/types/vsphere/machinepool.go +++ b/pkg/types/vsphere/machinepool.go @@ -30,7 +30,7 @@ type MachinePool struct { // +listType=map // +listMapKey=name // +kubebuilder:validation:MaxItems=29 - DataDisks []DataDisk `json:"dataDisks"` + DataDisks []DataDisk `json:"dataDisks,omitempty"` // Zones defines available zones // Zones is available in TechPreview.