cluster

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package cluster implements EKS cluster tester.

Index

Constants

View Source
const (
	ClusterCreateTimeout = time.Hour
	ClusterDeleteTimeout = time.Hour
)
View Source
const TemplateCluster = `` /* 1608-byte string literal not displayed */

TemplateCluster is the CloudFormation template for EKS cluster.

View Source
const TemplateClusterRole = `` /* 6806-byte string literal not displayed */

TemplateClusterRole is the CloudFormation template for EKS cluster role.

e.g.

Error creating load balancer (will retry): failed to ensure load balancer for service eks-*/hello-world-service: Error creating load balancer: "AccessDenied: User: arn:aws:sts::404174646922:assumed-role/eks-*-cluster-role/* is not authorized to perform: ec2:DescribeAccountAttributes\n\tstatus code: 403"

TODO: scope down (e.g. ec2:DescribeAccountAttributes, ec2:DescribeInternetGateways) mng, fargate, etc. may use other roles

View Source
const TemplateVPCPublicPrivate = `` /* 12947-byte string literal not displayed */

TemplateVPCPublicPrivate is the CloudFormation template for EKS VPC.

e.g. An error occurred (InvalidParameterException) when calling the CreateFargateProfile operation: Subnet subnet-123 provided in Fargate Profile is not a private subnet

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger    *zap.Logger
	Stopc     chan struct{}
	EKSConfig *eksconfig.Config
	IAMAPI    iamiface.IAMAPI
	KMSAPI    kmsiface.KMSAPI
	CFNAPI    cloudformationiface.CloudFormationAPI
	EC2API    ec2iface.EC2API
	EKSAPI    eksiface.EKSAPI
	ELBV2API  elbv2iface.ELBV2API
}

Config defines version upgrade configuration.

type Tester

type Tester interface {
	// 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.

Jump to

Keyboard shortcuts

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