fargate

package
v1.3.5 Latest Latest
Warning

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

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

Documentation

Overview

Package fargate implements tester for Fargate.

Index

Constants

View Source
const FargateProfileStatusDELETEDORNOTEXIST = "DELETED/NOT-EXIST"

FargateProfileStatusDELETEDORNOTEXIST defines the cluster status when the cluster is not found.

ref. https://docs.aws.amazon.com/eks/latest/APIReference/API_FargateProfile.html

CREATING
ACTIVE
DELETING
CREATE_FAILED
DELETE_FAILED
View Source
const TemplateRole = `` /* 1055-byte string literal not displayed */

TemplateRole is the CloudFormation template for EKS Fargate role.

Variables

This section is empty.

Functions

func IsProfileDeleted

func IsProfileDeleted(err error) bool

IsProfileDeleted returns true if error from EKS API indicates that the EKS fargate profile has already been deleted.

func New

func New(cfg Config) eks_tester.Tester

New creates a new Job tester.

func Poll

func Poll(
	ctx context.Context,
	stopc chan struct{},
	lg *zap.Logger,
	eksAPI eksiface.EKSAPI,
	clusterName string,
	profileName string,
	desiredStatus string,
	initialWait time.Duration,
	wait time.Duration,
) <-chan FargateProfileStatus

Poll periodically fetches the fargate profile status until the node group becomes the desired state.

Types

type Config

type Config struct {
	Logger    *zap.Logger
	Stopc     chan struct{}
	EKSConfig *eksconfig.Config
	K8SClient k8s_client.EKS
	CFNAPI    cloudformationiface.CloudFormationAPI
	EKSAPI    eksiface.EKSAPI
	IAMAPI    iamiface.IAMAPI
	ECRAPI    ecriface.ECRAPI
}

Config defines "Fargate" configuration.

type FargateProfileStatus

type FargateProfileStatus struct {
	FargateProfile *eks.FargateProfile
	Error          error
}

FargateProfileStatus represents the CloudFormation status.

Jump to

Keyboard shortcuts

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