eks

package
v2.25.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EKSNodeGroupStatus = "ACTIVE"

	ARM64Architecture = "arm64"
	X64Architecture   = "x64"

	// The architecture of the machine image.
	// Used for EKS api endpoints.
	EKSARM64Architecture  = "arm64"
	EKSX86_64Architecture = "x86_64"
)

Variables

This section is empty.

Functions

func ConvertMDStatus added in v2.21.0

func ConvertMDStatus(status ekstypes.NodegroupStatus) apiv2.ExternalClusterMDState

func ConvertStatus added in v2.21.0

func CreateCluster added in v2.21.0

func CreateCluster(ctx context.Context, client *awsprovider.ClientSet, clusterSpec *apiv2.EKSClusterSpec, eksClusterName string) error

func CreateNodeGroup added in v2.21.0

func CreateNodeGroup(ctx context.Context,
	client *awsprovider.ClientSet,
	clusterName, nodeGroupName string,
	eksMDCloudSpec *apiv2.EKSMachineDeploymentCloudSpec) error

func DecodeError added in v2.21.0

func DecodeError(err error) error

func DeleteCluster added in v2.21.0

func DeleteCluster(ctx context.Context, client *awsprovider.ClientSet, eksClusterName string) error

func DeleteNodegroup added in v2.21.0

func DeleteNodegroup(ctx context.Context, client *awsprovider.ClientSet, clusterName, nodeGroupName string) error

func DescribeNodeGroup added in v2.21.0

func DescribeNodeGroup(ctx context.Context, client *awsprovider.ClientSet, clusterName, nodeGroupName string) (*ekstypes.Nodegroup, error)

func GetCluster added in v2.21.0

func GetCluster(ctx context.Context, client *awsprovider.ClientSet, eksClusterName string) (*ekstypes.Cluster, error)

func GetClusterConfig

func GetClusterConfig(ctx context.Context, accessKeyID, secretAccessKey, clusterName, region string) (*api.Config, error)

func ListClusters added in v2.21.0

func ListClusters(ctx context.Context, client *awsprovider.ClientSet) ([]string, error)

func ListMachineDeploymentUpgrades added in v2.21.0

func ListMachineDeploymentUpgrades(ctx context.Context,
	creds EKSCredentials, region, clusterName, machineDeployment string) ([]*apiv1.MasterVersion, error)

func ListNodegroups added in v2.21.0

func ListNodegroups(ctx context.Context, client *awsprovider.ClientSet, clusterName string) ([]string, error)

func ListUpgrades added in v2.21.0

func ResizeNodeGroup added in v2.21.0

func ResizeNodeGroup(ctx context.Context, client *awsprovider.ClientSet, clusterName, nodeGroupName string, currentSize, desiredSize int32) (*eks.UpdateNodegroupConfigOutput, error)

func UpgradeClusterVersion added in v2.21.0

func UpgradeClusterVersion(ctx context.Context, client *awsprovider.ClientSet, version *semverlib.Version, eksClusterName string) error

func UpgradeNodeGroup added in v2.21.0

func UpgradeNodeGroup(ctx context.Context, client *awsprovider.ClientSet, clusterName, nodeGroupName, currentVersion, desiredVersion *string) (*eks.UpdateNodegroupVersionOutput, error)

func ValidateCredentials added in v2.21.0

func ValidateCredentials(ctx context.Context, credential resources.EKSCredential) error

Types

type EKSCredentials added in v2.22.0

type EKSCredentials struct {
	AccessKeyID          string
	SecretAccessKey      string
	AssumeRoleARN        string
	AssumeRoleExternalID string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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