framework

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

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestLabelSlow              = "slow"
	TestLabelNeedCreateCluster = "need-create-cluster"
	MessageUnexpectedError     = "unexpected error"
	E2ETestObjectLabel         = "kubeadmiral.io/e2e-test-object"
)
View Source
const (
	KwokClusterProvider = "kwok"
	KindClusterProvider = "kind"
)
View Source
const (
	E2EClusterTaintKey = "kubeadmiral-e2e-test"
)

Variables

View Source
var (
	// TODO: make this configurable through flags
	FedSystemNamespace string = common.DefaultFedSystemNamespace
	CronJobV1Available bool
)

Functions

func WithCascadingDelete

func WithCascadingDelete(c *fedcorev1a1.FederatedCluster)

func WithInsecure

func WithInsecure(c *fedcorev1a1.FederatedCluster)

func WithInvalidEndpoint

func WithInvalidEndpoint(c *fedcorev1a1.FederatedCluster)

func WithServiceAccount

func WithServiceAccount(c *fedcorev1a1.FederatedCluster)

func WithTaints

func WithTaints(c *fedcorev1a1.FederatedCluster)

Types

type ClusterModifier

type ClusterModifier func(*fedcorev1a1.FederatedCluster)

type Framework

type Framework interface {
	HostKubeClient() kubeclient.Interface
	HostFedClient() fedclient.Interface
	HostDynamicClient() dynamic.Interface
	HostDiscoveryClient() discovery.DiscoveryInterface

	Name() string
	TestNamespace() *corev1.Namespace

	NewCluster(ctx context.Context, clusterModifiers ...ClusterModifier) (*fedcorev1a1.FederatedCluster, *corev1.Secret)

	ClusterKubeClient(ctx context.Context, cluster *fedcorev1a1.FederatedCluster) kubeclient.Interface
	ClusterFedClient(ctx context.Context, cluster *fedcorev1a1.FederatedCluster) fedclient.Interface
	ClusterDynamicClient(ctx context.Context, cluster *fedcorev1a1.FederatedCluster) dynamic.Interface
}

func NewFramework

func NewFramework(baseName string, options FrameworkOptions) Framework

type FrameworkOptions

type FrameworkOptions struct {
	CreateNamespace bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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