capacity

package
v1.41.2-mcm-vsphere-de... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL