Documentation
¶
Index ¶
- Constants
- Variables
- func AddAndRegisterCrd(ctx context.Context, crd crd.Crd, apiexts apiexts.Interface) error
- func ApiExtsClient() (apiexts.Interface, error)
- func GetNamespaces(ctx context.Context) ([]string, error)
- func IsDebuggerPresent() bool
- func KubeClient() (kubernetes.Interface, error)
- func MustApiExtsClient() apiexts.Interface
- func MustGetNamespaces(ctx context.Context) []string
- func MustKubeClient() kubernetes.Interface
- func RandString(length int) string
- func RandStringGinkgo(length int, ginkgoSeed int64, node int) string
- func RegisterCommonFailHandlers()
- func RegisterPreFailHandler(prefail func())
- func SetupLog()
- func UseMemoryClients()
Constants ¶
View Source
const (
TestLabel = "test"
)
Variables ¶
View Source
var (
VersionExistsError = func(version string) error {
return eris.Errorf("tried adding version %s, but it already exists", version)
}
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 UseMemoryClients ¶
func UseMemoryClients()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.