nodegroup

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT-0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const EksctlTemplate = `` /* 938-byte string literal not displayed */

Variables

This section is empty.

Functions

func NewResource

func NewResource() *resource.Resource

func NewSpotResource

func NewSpotResource() *resource.Resource

Types

type Getter

type Getter struct {
	// contains filtered or unexported fields
}

func NewGetter

func NewGetter(eksClient *aws.EKSClient) *Getter

func (*Getter) Get

func (g *Getter) Get(name string, output printer.Output, options resource.Options) error

func (*Getter) GetAllNodeGroups

func (g *Getter) GetAllNodeGroups(clusterName string) ([]*types.Nodegroup, error)

func (*Getter) GetNodeGroupByName

func (g *Getter) GetNodeGroupByName(name, clusterName string) (*types.Nodegroup, error)

func (*Getter) Init

func (g *Getter) Init()

type Manager

type Manager struct {
	Eksctl resource.Manager
	// contains filtered or unexported fields
}

func (*Manager) Create

func (m *Manager) Create(options resource.Options) error

func (*Manager) Delete

func (m *Manager) Delete(options resource.Options) error

func (*Manager) Init

func (m *Manager) Init()

func (*Manager) SetDryRun

func (m *Manager) SetDryRun()

func (*Manager) Update

func (m *Manager) Update(options resource.Options, cmd *cobra.Command) error

type NodegroupOptions

type NodegroupOptions struct {
	*resource.CommonOptions

	AMI              string
	InstanceType     string
	IsClusterPrivate bool
	DesiredCapacity  int
	MinSize          int
	MaxSize          int
	NodegroupName    string
	NoTaints         bool
	OperatingSystem  string
	Spot             bool
	SpotvCPUs        int
	SpotMemory       int
	Taints           []Taint

	UpdateDesired int
	UpdateMin     int
	UpdateMax     int
}

func NewOptions

func NewOptions() (options *NodegroupOptions, createFlags, updateFlags cmd.Flags)

func NewSpotOptions

func NewSpotOptions() (options *NodegroupOptions, flags cmd.Flags)

func (*NodegroupOptions) PreCreate

func (o *NodegroupOptions) PreCreate() error

func (*NodegroupOptions) SetName

func (o *NodegroupOptions) SetName(name string)

type NodegroupPrinter

type NodegroupPrinter struct {
	Nodegroups []*types.Nodegroup
}

func NewPrinter

func NewPrinter(Nodegroups []*types.Nodegroup) *NodegroupPrinter

func (*NodegroupPrinter) PrintJSON

func (p *NodegroupPrinter) PrintJSON(writer io.Writer) error

func (*NodegroupPrinter) PrintTable

func (p *NodegroupPrinter) PrintTable(writer io.Writer) error

func (*NodegroupPrinter) PrintYAML

func (p *NodegroupPrinter) PrintYAML(writer io.Writer) error

type Taint added in v0.11.0

type Taint struct {
	Key    string
	Value  string
	Effect string
}

Jump to

Keyboard shortcuts

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