package
0.0.0-20191106183803-93838817ef49
Repository: https://github.com/lionelvillard/pkg.git
Documentation: pkg.go.dev

# Functions

CreateResource creates a testing.Resource with the given name in the system namespace.
ExpectAllowed checks that a given admission response allows the initiating request through.
ExpectFailsWith checks that a given admission response disallows the initiating request through and contains the provided string in its error message.
ExpectPatches checks that the provided serialized bytes consist of an expected collection of patches.
MakeFactory creates a reconciler factory with fake clients and controller created by `ctor`.
NewListers constructs a Listers from a collection of objects.
NewScheme constructs a scheme from the set of client schemes supported by this package.
ToUnstructured takes a list of k8s resources and converts them to Unstructured objects.

# Structs

Listers is used to synthesize informer-style Listers from fixed lists of resources in tests.

# Type aliases

Ctor functions create a k8s controller with given params.