instancetype

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GiBMiBRatio              = 1024
	MiBByteRatio             = 1024 * 1024
	TerwayMinENIRequirements = 11
	BaseHostNetworkPods      = 3
	FlannelDefaultPods       = 256

	ClusterCNITypeTerway  = "terway-eniip"
	ClusterCNITypeFlannel = "Flannel"
)

Variables

This section is empty.

Functions

Types

type DefaultProvider

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

func NewDefaultProvider

func NewDefaultProvider(region string, kubeClient client.Client, ecsClient *ecsclient.Client,
	instanceTypesCache *cache.Cache, unavailableOfferingsCache *kcache.UnavailableOfferings,
	pricingProvider pricing.Provider, ackProvider ack.Provider) *DefaultProvider

func (*DefaultProvider) List

func (*DefaultProvider) LivenessProbe

func (p *DefaultProvider) LivenessProbe(req *http.Request) error

func (*DefaultProvider) Reset

func (p *DefaultProvider) Reset()

func (*DefaultProvider) UpdateInstanceTypeOfferings

func (p *DefaultProvider) UpdateInstanceTypeOfferings(ctx context.Context) error

func (*DefaultProvider) UpdateInstanceTypes

func (p *DefaultProvider) UpdateInstanceTypes(ctx context.Context) error

type Provider

type Provider interface {
	LivenessProbe(*http.Request) error
	List(context.Context, *v1alpha1.KubeletConfiguration, *v1alpha1.ECSNodeClass) ([]*cloudprovider.InstanceType, error)
	UpdateInstanceTypes(ctx context.Context) error
	UpdateInstanceTypeOfferings(ctx context.Context) error
}

type ZoneData

type ZoneData struct {
	ID            string
	Available     bool
	SpotAvailable bool
}

Jump to

Keyboard shortcuts

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