wait

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package wait implements Fargate wait polling functions.

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

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 Poll

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

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

Types

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