test

package
v0.0.0-...-1a76267 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DaemonSet

func DaemonSet(overrides ...DaemonSetOptions) *appsv1.DaemonSet

DaemonSet creates a test pod with defaults that can be overridden by DaemonSetOptions. Overrides are applied in order, with a last write wins semantic.

func OciNodeClass

func OciNodeClass(overrides ...v1alpha1.OciNodeClass) *v1alpha1.OciNodeClass

func OciNodeClassFieldIndexer

func OciNodeClassFieldIndexer(ctx context.Context) func(cache.Cache) error

func Options

func Options(overrides ...OptionsFields) *options.Options

Types

type DaemonSetOptions

type DaemonSetOptions struct {
	metav1.ObjectMeta
	Selector   map[string]string
	PodOptions test.PodOptions
}

DaemonSetOptions customizes a DaemonSet.

type Environment

type Environment struct {
	// API
	CmpCli *fake.CmpCli
	VcnCli *fake.VcnCli

	// Cache
	AmiCache                  *cache.Cache
	InstanceTypeCache         *cache.Cache
	SubnetCache               *cache.Cache
	SecurityGroupCache        *cache.Cache
	UnavailableOfferingsCache *ocicache.UnavailableOfferings

	// Providers
	InstanceTypesProvider  *instancetype.Provider
	InstanceProvider       *instance.Provider
	SubnetProvider         *subnet.Provider
	SecurityGroupProvider  *securitygroup.Provider
	AMIProvider            *imagefamily.Provider
	AMIResolver            *imagefamily.Resolver
	LaunchTemplateProvider *launchtemplate.DefaultProvider
}

func NewEnvironment

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

func (*Environment) Reset

func (env *Environment) Reset()

type OptionsFields

type OptionsFields struct {
	ClusterName              *string
	ClusterEndpoint          *string
	ClusterCABundle          *string
	BootStrapToken           *string
	CompartmentId            *string
	VMMemoryOverheadPercent  *float64
	FlexCpuMemRatios         *string
	FlexCpuConstrainList     *string
	AvailableDomains         []string
	TagNamespace             *string
	PreemptibleShapes        *string
	PreemptibleExcludeShapes *string
}

Jump to

Keyboard shortcuts

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