Documentation
¶
Index ¶
- func DisableCapacityReservationIDValidation(crds []*apiextensionsv1.CustomResourceDefinition) []*apiextensionsv1.CustomResourceDefinition
- func EC2NodeClass(overrides ...v1.EC2NodeClass) *v1.EC2NodeClass
- func NodeClaimInstanceIDFieldIndexer(ctx context.Context) func(ctrlcache.Cache) error
- func NodeInstanceIDFieldIndexer(ctx context.Context) func(ctrlcache.Cache) error
- func Options(overrides ...OptionsFields) *options.Options
- func RemoveNodeClassTagValidation(crds []*apiextensionsv1.CustomResourceDefinition) []*apiextensionsv1.CustomResourceDefinition
- type Environment
- type OptionsFields
- type TestNodeClass
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableCapacityReservationIDValidation ¶ added in v1.3.0
func DisableCapacityReservationIDValidation(crds []*apiextensionsv1.CustomResourceDefinition) []*apiextensionsv1.CustomResourceDefinition
DisableCapacityReservationIDValidation updates the regex validation used for capacity reservation IDs to allow any string after the "cr-" prefix. This enables us to embed useful debugging information in the reservation ID, such as the instance type and zone.
func EC2NodeClass ¶
func EC2NodeClass(overrides ...v1.EC2NodeClass) *v1.EC2NodeClass
func NodeClaimInstanceIDFieldIndexer ¶ added in v1.3.0
func NodeInstanceIDFieldIndexer ¶ added in v1.3.0
func Options ¶
func Options(overrides ...OptionsFields) *options.Options
func RemoveNodeClassTagValidation ¶ added in v1.2.0
func RemoveNodeClassTagValidation(crds []*apiextensionsv1.CustomResourceDefinition) []*apiextensionsv1.CustomResourceDefinition
Types ¶
type Environment ¶
type Environment struct {
// Mock
Clock *clock.FakeClock
EventRecorder *coretest.EventRecorder
InstanceTypeStore *nodeoverlay.InstanceTypeStore
// API
EC2API *fake.EC2API
EKSAPI *fake.EKSAPI
SSMAPI *fake.SSMAPI
IAMAPI *fake.IAMAPI
PricingAPI *fake.PricingAPI
// Cache
AMICache *cache.Cache
EC2Cache *cache.Cache
InstanceTypeCache *cache.Cache
InstanceCache *cache.Cache
OfferingCache *cache.Cache
LaunchTemplateCache *cache.Cache
SubnetCache *cache.Cache
AvailableIPAdressCache *cache.Cache
AssociatePublicIPAddressCache *cache.Cache
SecurityGroupCache *cache.Cache
InstanceProfileCache *cache.Cache
RoleCache *cache.Cache
SSMCache *cache.Cache
DiscoveredCapacityCache *cache.Cache
CapacityReservationCache *cache.Cache
CapacityReservationAvailabilityCache *cache.Cache
ValidationCache *cache.Cache
RecreationCache *cache.Cache
ProtectedProfilesCache *cache.Cache
// Providers
CapacityReservationProvider *capacityreservation.DefaultProvider
InstanceTypesResolver *instancetype.DefaultResolver
InstanceTypesProvider *instancetype.DefaultProvider
InstanceProvider *instance.DefaultProvider
SubnetProvider *subnet.DefaultProvider
SecurityGroupProvider *securitygroup.DefaultProvider
InstanceProfileProvider *instanceprofile.DefaultProvider
PricingProvider *pricing.DefaultProvider
AMIProvider *amifamily.DefaultProvider
AMIResolver *amifamily.DefaultResolver
VersionProvider *version.DefaultProvider
LaunchTemplateProvider *launchtemplate.DefaultProvider
SSMProvider *ssmp.DefaultProvider
}
func NewEnvironment ¶
func NewEnvironment(ctx context.Context, env *coretest.Environment) *Environment
func (*Environment) Reset ¶
func (env *Environment) Reset()
type OptionsFields ¶
type TestNodeClass ¶ added in v1.1.0
type TestNodeClass struct {
v1.EC2NodeClass
}
func (*TestNodeClass) InstanceProfileTags ¶ added in v1.1.0
func (t *TestNodeClass) InstanceProfileTags(clusterName string) map[string]string
Click to show internal directories.
Click to hide internal directories.