wait

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: 20 Imported by: 0

Documentation

Overview

Package wait implements node waiter.

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
	K8SClient k8s_client.EKS
	EC2APIV2  *aws_ec2_v2.Client
	ASGAPIV2  *aws_asg_v2.Client
}

Config defines version upgrade configuration.

type NodeWaiter

type NodeWaiter interface {
	// Wait waits until all NG and Kubernetes nodes are ready.
	Wait(asgName string, retries int) error
}

NodeWaiter defines node waiter operation.

func New

func New(cfg Config) NodeWaiter

New creates a new node waiter.

Jump to

Keyboard shortcuts

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