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.

            Source Files