Skip to content

Commit

Permalink
api: Miscellaneous bug fixes caught by unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Barnes committed Feb 26, 2025
1 parent 35b7ced commit 8a2f28e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/hcpopenshiftclusternodepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand Down
1 change: 1 addition & 0 deletions internal/api/v20240610preview/nodepools_methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8a2f28e

Please sign in to comment.