cluster

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Overview

Package cluster implements EKS cluster tester.

Index

Constants

View Source
const (
	ClusterCreateTimeout = time.Hour
	ClusterDeleteTimeout = time.Hour
)

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

	S3API   s3iface.S3API
	S3APIV2 *aws_s3_v2.Client

	IAMAPIV2 *aws_iam_v2.Client

	KMSAPIV2 *aws_kms_v2.Client

	EC2APIV2 *aws_ec2_v2.Client

	EKSAPI   eksiface.EKSAPI
	EKSAPIV2 *aws_eks_v2.Client

	ELBV2APIV2 *aws_elbv2_v2.Client

	CFNAPI cloudformationiface.CloudFormationAPI
}

Config defines version upgrade configuration.

type Tester

type Tester interface {
	// Name returns the name of the tester.
	Name() string
	// Create creates EKS cluster, and waits for completion.
	Create() error
	Client() k8s_client.EKS
	// CheckHealth checks EKS cluster health.
	CheckHealth() error
	// Delete deletes all EKS cluster resources.
	Delete() error
}

func New

func New(cfg Config) Tester

New creates a new Job tester.

Directories

Path Synopsis
Package versionupgrade implements EKS cluster version upgrade tester.
Package versionupgrade implements EKS cluster version upgrade tester.
Package wait implements cluster waiter.
Package wait implements cluster waiter.
Package wait_v2 implements cluster waiter.
Package wait_v2 implements cluster waiter.

Jump to

Keyboard shortcuts

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