Skip to content

Commit

Permalink
Merge pull request #33 from avisi-cloud/fix-autoscaler-types
Browse files Browse the repository at this point in the history
fix(autoscaler): change threshold field types from string to float64
  • Loading branch information
gerruite authored Nov 5, 2024
2 parents 70b6c51 + 8ce2455 commit 12b120f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/acloudapi/apitypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,17 +457,17 @@ type ListScheduledClusterUpgradesOpts struct {

type AutoscalerSettings struct {
// ScaleDownUtilizationThreshold specifies the scale down utilization threshold
ScaleDownUtilizationThreshold string `json:"scale-down-utilization-threshold"`
ScaleDownUtilizationThreshold float64 `json:"scale-down-utilization-threshold,omitempty" yaml:"ScaleDownUtilizationThreshold,omitempty"`
// ScaleDownGpuUtilizationThreshold specifies the scale down GPU utilization threshold
ScaleDownGpuUtilizationThreshold string `json:"scale-down-gpu-utilization-threshold"`
ScaleDownGpuUtilizationThreshold float64 `json:"scale-down-gpu-utilization-threshold,omitempty" yaml:"ScaleDownGpuUtilizationThreshold,omitempty"`
// ScaleDownDelayAfterAdd specifies the scale down delay after add
ScaleDownDelayAfterAdd string `json:"scale-down-delay-after-add"`
ScaleDownDelayAfterAdd string `json:"scale-down-delay-after-add,omitempty" yaml:"ScaleDownDelayAfterAdd,omitempty"`
// ScaleDownUnneededTime specifies the scale down unneeded time
ScaleDownUnneededTime string `json:"scale-down-unneeded-time"`
ScaleDownUnneededTime string `json:"scale-down-unneeded-time,omitempty" yaml:"ScaleDownUnneededTime,omitempty"`
// ScaleDownUnreadyTime specifies the scale down unready time
ScaleDownUnreadyTime string `json:"scale-down-unready-time"`
ScaleDownUnreadyTime string `json:"scale-down-unready-time,omitempty" yaml:"ScaleDownUnreadyTime,omitempty"`
// MaxNodeProvisionTime specifies the max node provision time
MaxNodeProvisionTime string `json:"max-node-provision-time"`
MaxNodeProvisionTime string `json:"max-node-provision-time,omitempty" yaml:"MaxNodeProvisionTime,omitempty"`
// UnremovableNodeRecheckTimeout specifies the unremovable node recheck timeout
UnremovableNodeRecheckTimeout string `json:"unremovable-node-recheck-timeout"`
UnremovableNodeRecheckTimeout string `json:"unremovable-node-recheck-timeout,omitempty" yaml:"UnremovableNodeRecheckTimeout,omitempty"`
}

0 comments on commit 12b120f

Please sign in to comment.