dynamic

package
v0.0.0-...-4c37ff3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 114

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeGroupSpec

type NodeGroupSpec struct {
	// The name of the autoscaling target
	Name string `json:"name"`
	// Min size of the autoscaling target
	MinSize int `json:"minSize"`
	// Max size of the autoscaling target
	MaxSize int `json:"maxSize"`
	// Specifies whether this node group can scale to zero nodes.
	SupportScaleToZero bool
}

NodeGroupSpec represents a specification of a node group to be auto-scaled

func SpecFromString

func SpecFromString(value string, SupportScaleToZero bool) (*NodeGroupSpec, error)

SpecFromString parses a node group spec represented in the form of `<minSize>:<maxSize>:<name>` and produces a node group spec object

func (NodeGroupSpec) String

func (s NodeGroupSpec) String() string

Represents the node group spec in the form of `<minSize>:<maxSize>:<name>`

func (NodeGroupSpec) Validate

func (s NodeGroupSpec) Validate() error

Validate produces an error if there's an invalid field in the node group spec

Jump to

Keyboard shortcuts

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