diff --git a/internal/api/hcpopenshiftclusternodepool.go b/internal/api/hcpopenshiftclusternodepool.go index f827d5e82..acf6ef89b 100644 --- a/internal/api/hcpopenshiftclusternodepool.go +++ b/internal/api/hcpopenshiftclusternodepool.go @@ -24,7 +24,7 @@ type HCPOpenShiftClusterNodePoolProperties struct { AutoRepair bool `json:"autoRepair,omitempty" visibility:"read create"` AutoScaling *NodePoolAutoScaling `json:"autoScaling,omitempty" visibility:"read create update"` Labels map[string]string `json:"labels,omitempty" visibility:"read create update"` - Taints []*Taint `json:"taints,omitempty" visibility:"read create update"` + Taints []*Taint `json:"taints,omitempty" visibility:"read create update" validate:"dive"` TuningConfigs []string `json:"tuningConfigs,omitempty" visibility:"read create update"` } diff --git a/internal/api/v20240610preview/nodepools_methods.go b/internal/api/v20240610preview/nodepools_methods.go index a418acf27..08606dbc0 100644 --- a/internal/api/v20240610preview/nodepools_methods.go +++ b/internal/api/v20240610preview/nodepools_methods.go @@ -69,6 +69,7 @@ func (h *HcpOpenShiftClusterNodePoolResource) Normalize(out *api.HCPOpenShiftClu normalizeNodePoolPlatform(h.Properties.Platform, &out.Properties.Platform) } if h.Properties.AutoScaling != nil { + out.Properties.AutoScaling = &api.NodePoolAutoScaling{} if h.Properties.AutoScaling.Max != nil { out.Properties.AutoScaling.Max = *h.Properties.AutoScaling.Max }