Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidSpec = errors.New("Invalid InstanceClass spec")
)
Functions ¶
This section is empty.
Types ¶
type Capacity ¶
type Capacity struct { CPU resource.Quantity `json:"cpu,omitempty"` Memory resource.Quantity `json:"memory,omitempty"` }
Capacity node capacity for autoscaler
func CalculateNodeTemplateCapacity ¶
func CalculateNodeTemplateCapacity(instanceClassName string, instanceClassSpec interface{}) (*Capacity, error)
CalculateNodeTemplateCapacity calculates capacity of the node based on InstanceClass and it's spec
Click to show internal directories.
Click to hide internal directories.