awseks

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlatform

func NewPlatform() platform.Platform

Types

type AwsEksPlatform

type AwsEksPlatform struct {
	// contains filtered or unexported fields
}

func (*AwsEksPlatform) CreateClusterPrerequisites

func (a *AwsEksPlatform) CreateClusterPrerequisites(ctx context.Context, clusterName string) error

CreateClusterPrerequisites does nothing for now, but for outpost may need to create a vpc

func (*AwsEksPlatform) GatherCloudletInfo

func (a *AwsEksPlatform) GatherCloudletInfo(ctx context.Context, info *edgeproto.CloudletInfo) error

func (*AwsEksPlatform) GetCloudletInfraResourcesInfo

func (a *AwsEksPlatform) GetCloudletInfraResourcesInfo(ctx context.Context) ([]edgeproto.InfraResource, error)

func (*AwsEksPlatform) GetClusterAdditionalResourceMetric

func (a *AwsEksPlatform) GetClusterAdditionalResourceMetric(ctx context.Context, cloudlet *edgeproto.Cloudlet, resMetric *edgeproto.Metric, resources []edgeproto.VMResource) error

func (*AwsEksPlatform) GetClusterAdditionalResources

func (a *AwsEksPlatform) GetClusterAdditionalResources(ctx context.Context, cloudlet *edgeproto.Cloudlet, vmResources []edgeproto.VMResource, infraResMap map[string]edgeproto.InfraResource) map[string]edgeproto.InfraResource

called by controller, make sure it doesn't make any calls to infra API

func (*AwsEksPlatform) GetCredentials

func (a *AwsEksPlatform) GetCredentials(ctx context.Context, clusterName string) error

GetCredentials retrieves kubeconfig credentials from AWS

func (*AwsEksPlatform) GetFeatures

func (o *AwsEksPlatform) GetFeatures() *edgeproto.PlatformFeatures

func (*AwsEksPlatform) InitApiAccessProperties

func (a *AwsEksPlatform) InitApiAccessProperties(ctx context.Context, accessApi platform.AccessApi, vars map[string]string) error

func (*AwsEksPlatform) Login

func (a *AwsEksPlatform) Login(ctx context.Context) error

func (*AwsEksPlatform) NameSanitize

func (a *AwsEksPlatform) NameSanitize(clusterName string) string

func (*AwsEksPlatform) RunClusterCreateCommand

func (a *AwsEksPlatform) RunClusterCreateCommand(ctx context.Context, clusterName string, numNodes uint32, flavor string) error

RunClusterCreateCommand creates a kubernetes cluster on AWS

func (*AwsEksPlatform) RunClusterDeleteCommand

func (a *AwsEksPlatform) RunClusterDeleteCommand(ctx context.Context, clusterName string) error

RunClusterDeleteCommand removes the kubernetes cluster on AWS

func (*AwsEksPlatform) SetProperties

func (a *AwsEksPlatform) SetProperties(props *infracommon.InfraProperties) error

type AwsEksResources

type AwsEksResources struct {
	K8sClustersUsed           uint64
	MaxK8sNodesPerClusterUsed uint64
	TotalK8sNodesUsed         uint64
	NetworkLBsUsed            uint64
}

Jump to

Keyboard shortcuts

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