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 ¶
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, 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.
Click to show internal directories.
Click to hide internal directories.