fixture

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TestE2ENamespace = "argo-rollouts"
)

Variables

This section is empty.

Functions

func EnsureCleanSlate

func EnsureCleanSlate() error

func GetE2ETestKubeClient

func GetE2ETestKubeClient() (client.Client, error)

func GetKubeClient

func GetKubeClient(config *rest.Config) (client.Client, error)

GetKubeClient returns a controller-runtime Client for accessing K8s API resources used by the controller.

func GetSystemKubeConfig

func GetSystemKubeConfig() (*rest.Config, error)

Retrieve the system-level Kubernetes config (e.g. ~/.kube/config or service account config from volume)

Types

type Cleaner

type Cleaner struct {
	// contains filtered or unexported fields
}

func NewCleaner

func NewCleaner() (*Cleaner, error)

func (*Cleaner) DeleteNamespace

func (cleaner *Cleaner) DeleteNamespace(namespaceParam string) error

DeleteNamespace deletes a namespace, and waits for it to be reported as deleted.

func (*Cleaner) DeleteRolloutsClusterRoles

func (cleaner *Cleaner) DeleteRolloutsClusterRoles() error

func (*Cleaner) EnsureDestinationNamespaceExists

func (cleaner *Cleaner) EnsureDestinationNamespaceExists(namespaceParam string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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