Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SupportedResources ¶
func SupportedResources() []v1.ResourceName
Types ¶
type ScalingTarget ¶
func (*ScalingTarget) Key ¶
func (s *ScalingTarget) Key() string
Key generates a unique string for comparing between Spec targets
type Spec ¶
type Spec struct { CPUPerReplica float64 // In millicores MemoryPerReplica float64 // In bytes Name string // A defined name for this scaling configuration // ResourcePerReplica string // How much resource per replica of the deployment Target ScalingTarget // What deployment to scale }
func (*Spec) ResourceScaler ¶
func (s *Spec) ResourceScaler(rName v1.ResourceName) float64
Click to show internal directories.
Click to hide internal directories.