helpers

package
v0.36.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 32 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TestLabel = "test"
)

Variables

View Source
var (
	VersionExistsError = func(groupKind schema.GroupKind, version string) error {
		return eris.Errorf("tried adding version %s for group kind %s, but it already exists", version, groupKind.String())
	}

	NotFoundError = func(id string) error {
		return eris.Errorf("could not find the combined crd for %v", id)
	}

	InvalidGVKError = func(gvk schema.GroupVersionKind) error {
		return eris.Errorf("the following gvk %v does not correspond to a crd in the combined crd object", gvk)
	}
)

Functions

func AddAndRegisterCrd added in v0.18.0

func AddAndRegisterCrd(ctx context.Context, crd crd.Crd, apiexts apiexts.Interface) error

func ApiExtsClient

func ApiExtsClient() (apiexts.Interface, error)

func GetNamespaces

func GetNamespaces(ctx context.Context) ([]string, error)

Note: requires RBAC permission to list namespaces at the cluster level

func IsDebuggerPresent

func IsDebuggerPresent() bool

func KubeClient

func KubeClient() (kubernetes.Interface, error)

func MustApiExtsClient

func MustApiExtsClient() apiexts.Interface

func MustGetNamespaces

func MustGetNamespaces(ctx context.Context) []string

func MustKubeClient

func MustKubeClient() kubernetes.Interface

func RandString

func RandString(length int) string

func RandStringGinkgo added in v0.10.19

func RandStringGinkgo(length int, ginkgoSeed int64, node int) string

func RegisterCommonFailHandlers

func RegisterCommonFailHandlers()

func RegisterPreFailHandler

func RegisterPreFailHandler(prefail func())

func SetupLog

func SetupLog()

func UseMemoryClients

func UseMemoryClients()

Types

This section is empty.

Jump to

Keyboard shortcuts

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