framework

package
v1.48.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config func(*Configs)

func WithCertsDir

func WithCertsDir(s string) Config

func WithIssuerName

func WithIssuerName(s string) Config

func WithNodeUtilsImage

func WithNodeUtilsImage(s string) Config

func WithWorkerCount

func WithWorkerCount(v int) Config

type Configs

type Configs struct {
	CertsDir     string
	IssuerName   string
	WorkerCount  int
	NodeUtilsImg string
}

type TestFramework

type TestFramework struct {
	RestCfg    *rest.Config
	Client     client.Client
	KubeClient *kubernetes.Clientset
	Env        *envtest.Environment
	Cfg        *Configs
	Ctx        context.Context
}

func New

func New(ctx context.Context, cfgs ...Config) (*TestFramework, error)

func (*TestFramework) Context

func (tf *TestFramework) Context() context.Context

func (*TestFramework) CreateRandomNamespace

func (tf *TestFramework) CreateRandomNamespace() (*corev1.Namespace, error)

func (*TestFramework) DeleteNamespace

func (tf *TestFramework) DeleteNamespace(ns *corev1.Namespace) error

func (*TestFramework) RunManager

func (tf *TestFramework) RunManager() error

func (*TestFramework) TearDown

func (tf *TestFramework) TearDown() error

Jump to

Keyboard shortcuts

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