Documentation ¶
Index ¶
- type AMIReleaseVersion
- type CreateOpts
- type DrainInput
- type Manager
- func (m *Manager) Create(ctx context.Context, options CreateOpts, ...) error
- func (m *Manager) Delete(ctx context.Context, nodeGroups []*api.NodeGroup, ...) error
- func (m *Manager) Drain(ctx context.Context, input *DrainInput) error
- func (m *Manager) Get(ctx context.Context, name string) (*Summary, error)
- func (m *Manager) GetAll(ctx context.Context) ([]*Summary, error)
- func (m *Manager) Scale(ctx context.Context, ng *api.NodeGroupBase) error
- func (m *Manager) Update(ctx context.Context) error
- func (m *Manager) Upgrade(ctx context.Context, options UpgradeOptions) error
- type Summary
- type UpgradeOptions
- type WaitFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AMIReleaseVersion ¶ added in v0.82.0
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
func (a AMIReleaseVersion) Compare(b AMIReleaseVersion) int
Compare returns 0 if a==b, -1 if a < b, and +1 if a > b.
func (AMIReleaseVersion) GTE ¶ added in v0.82.0
func (a AMIReleaseVersion) GTE(b AMIReleaseVersion) bool
GTE checks if a is greater than or equal to b.
func (AMIReleaseVersion) LTE ¶ added in v0.82.0
func (a AMIReleaseVersion) LTE(b AMIReleaseVersion) bool
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 }
CreateOpts controls specific steps of node group creation
type DrainInput ¶ added in v0.83.0
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg *api.ClusterConfig, ctl *eks.ClusterProvider, clientSet kubernetes.Interface, instanceSelector eks.InstanceSelector) *Manager
New creates a new manager.
func (*Manager) Create ¶
func (m *Manager) Create(ctx context.Context, options CreateOpts, nodegroupFilter filter.NodegroupFilter) error
Create creates a new nodegroup with the given options.
type Summary ¶ added in v0.88.0
type Summary struct { StackName string Cluster string Name string Status string MaxSize int MinSize int DesiredCapacity int InstanceType string ImageID string CreationTime time.Time NodeInstanceRoleARN string AutoScalingGroupName string Version string NodeGroupType api.NodeGroupType `json:"Type"` }
Summary represents a summary of a nodegroup stack
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
Click to show internal directories.
Click to hide internal directories.