scale

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package scale implements EKS cluster scaler tester. ref. https://docs.aws.amazon.com/cli/latest/reference/eks/update-nodegroup-config.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger    *zap.Logger
	LogWriter io.Writer
	Stopc     chan struct{}
	EKSConfig *eksconfig.Config
	EKSAPI    eksiface.EKSAPI
}

Config defines scaler configuration.

type Scaler

type Scaler interface {
	// Update starts MNG scaler process, and waits for its completion.
	// ref. https://docs.aws.amazon.com/cli/latest/reference/eks/update-nodegroup-config.html
	Scale(mngName string) error
}

Scaler defines MNG scaler interface. ref. https://docs.aws.amazon.com/cli/latest/reference/eks/update-nodegroup-config.html

func New

func New(cfg Config) Scaler

New creates a new Scaler.

Jump to

Keyboard shortcuts

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