test

package
v0.0.0-...-5affba4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AWSNodeTemplate

func AWSNodeTemplate(overrides ...v1alpha1.AWSNodeTemplateSpec) *v1alpha1.AWSNodeTemplate

func Provisioner

func Provisioner(options test.ProvisionerOptions) *corev1alpha5.Provisioner

func Settings

func Settings(overrides ...SettingOptions) *awssettings.Settings

Types

type Environment

type Environment struct {
	// API
	EC2API     *fake.EC2API
	SSMAPI     *fake.SSMAPI
	PricingAPI *fake.PricingAPI

	// Cache
	SSMCache                  *cache.Cache
	EC2Cache                  *cache.Cache
	KubernetesVersionCache    *cache.Cache
	InstanceTypeCache         *cache.Cache
	UnavailableOfferingsCache *awscache.UnavailableOfferings
	LaunchTemplateCache       *cache.Cache
	SubnetCache               *cache.Cache
	SecurityGroupCache        *cache.Cache

	// Providers
	InstanceTypesProvider  *instancetype.Provider
	InstanceProvider       *instance.Provider
	SubnetProvider         *subnet.Provider
	SecurityGroupProvider  *securitygroup.Provider
	PricingProvider        *pricing.Provider
	AMIProvider            *amifamily.Provider
	AMIResolver            *amifamily.Resolver
	LaunchTemplateProvider *launchtemplate.Provider
}

func NewEnvironment

func NewEnvironment(ctx context.Context, env *coretest.Environment) *Environment

func (*Environment) Reset

func (env *Environment) Reset()

type SettingOptions

type SettingOptions struct {
	ClusterName                *string
	ClusterEndpoint            *string
	DefaultInstanceProfile     *string
	EnablePodENI               *bool
	EnableENILimitedPodDensity *bool
	IsolatedVPC                *bool
	NodeNameConvention         *awssettings.NodeNameConvention
	VMMemoryOverheadPercent    *float64
	InterruptionQueueName      *string
	Tags                       map[string]string
}

Jump to

Keyboard shortcuts

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