nodegroup

package
v0.85.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 38 Imported by: 4 modules, 20 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMIReleaseVersion added in v0.82.0

type AMIReleaseVersion struct {
	Version semver.Version
	Date    string
}

func ParseReleaseVersion added in v0.82.0

func ParseReleaseVersion(releaseVersion string) (AMIReleaseVersion, error)

ParseReleaseVersion parses an AMI release version string that's in the format `1.18.8-20201007`

func (AMIReleaseVersion) Compare added in v0.82.0

Compare returns 0 if a==b, -1 if a < b, and +1 if a > b.

func (AMIReleaseVersion) GTE added in v0.82.0

GTE checks if a is greater than or equal to b.

func (AMIReleaseVersion) LTE added in v0.82.0

LTE checks if a is less than or equal to b.

type CreateOpts

type CreateOpts struct {
	UpdateAuthConfigMap       bool
	InstallNeuronDevicePlugin bool
	InstallNvidiaDevicePlugin bool
	DryRun                    bool
	SkipOutdatedAddonsCheck   bool
	ConfigFileProvided        bool
}

Options controls specific steps of node group creation

type DrainInput added in v0.83.0

type DrainInput struct {
	NodeGroups          []eks.KubeNodeGroup
	Plan                bool
	MaxGracePeriod      time.Duration
	NodeDrainWaitPeriod time.Duration
	Undo                bool
	DisableEviction     bool
}

type Manager

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

func New

func New(cfg *api.ClusterConfig, ctl *eks.ClusterProvider, clientSet kubernetes.Interface) *Manager

New creates a new manager.

func (*Manager) Create

func (m *Manager) Create(options CreateOpts, nodegroupFilter filter.NodegroupFilter) error

Create creates a new nodegroup with the given options.

func (*Manager) Delete

func (m *Manager) Delete(nodeGroups []*api.NodeGroup, managedNodeGroups []*api.ManagedNodeGroup, wait, plan bool) error

func (*Manager) Drain

func (m *Manager) Drain(input *DrainInput) error

func (*Manager) Get

func (m *Manager) Get(name string) (*manager.NodeGroupSummary, error)

func (*Manager) GetAll

func (m *Manager) GetAll() ([]*manager.NodeGroupSummary, error)

func (*Manager) Scale

func (m *Manager) Scale(ng *api.NodeGroupBase) error

func (*Manager) Update added in v0.55.0

func (m *Manager) Update() error

func (*Manager) Upgrade

func (m *Manager) Upgrade(options UpgradeOptions) error

type UpgradeOptions added in v0.82.0

type UpgradeOptions struct {
	// NodeGroupName nodegroup name
	NodegroupName string
	// KubernetesVersion EKS version
	KubernetesVersion string
	// LaunchTemplateVersion launch template version
	// valid only if a nodegroup was created with a launch template
	LaunchTemplateVersion string
	//ForceUpgrade enables force upgrade
	ForceUpgrade bool
	// ReleaseVersion AMI version of the EKS optimized AMI to use
	ReleaseVersion string
	// Wait for the upgrade to finish
	Wait bool
	// Stack to upgrade
	Stack *manager.NodeGroupStack
}

UpgradeOptions contains options to configure nodegroup upgrades

type WaitFunc

type WaitFunc func(name, msg string, acceptors []request.WaiterAcceptor, newRequest func() *request.Request, waitTimeout time.Duration, troubleshoot func(string) error) error

Jump to

Keyboard shortcuts

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