Documentation ¶
Index ¶
- Constants
- func ExpectResourceCreated(c client.Client, obj client.Object)
- func ExpectResourceDestroyed(c client.Client, obj client.Object)
- func GetContainer(containers []v1.Container, name string) *v1.Container
- func GetResource(c client.Client, obj client.Object) error
- func MakeTestCA(signer string) *crypto.CA
- func RunOperator(mgr manager.Manager, ctx context.Context) (doneChan chan struct{})
- func VerifyCert(secret *v1.Secret, privKey string, pubKey string, expectedSANs ...string)
- func VerifyCertSANs(certBytes []byte, expectedSANs ...string)
- func VerifyPublicCert(secret *v1.Secret, pubKey string, expectedSANs ...string)
- type NonZeroDefaultOption
- type ValueDefaulter
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func ExpectResourceCreated ¶
ExpectResourceCreated asserts that the given object is created, and populates the provided client.Object with the current state of the object in the cluster.
func ExpectResourceDestroyed ¶
ExpectResourceDestroyed asserts that the given object no longer exists.
func GetContainer ¶ added in v1.14.0
func GetResource ¶
GetResource gets the requested object, populating obj with its contents.
func MakeTestCA ¶ added in v1.14.0
func RunOperator ¶
RunOperator runs the provided operator manager in a separate goroutine so that the test code isn't blocked. The passed in stop channel can be closed in order to stop the execution of the operator. The channel returned will be closed when the mgr stops.
func VerifyCert ¶ added in v1.14.0
func VerifyCertSANs ¶ added in v1.14.0
Types ¶
type NonZeroDefaultOption ¶ added in v1.12.0
type NonZeroDefaultOption func(defaulter *nonZeroValueDefaulter)
func WithInterfaceImplementations ¶ added in v1.12.0
func WithInterfaceImplementations(ifaceImpls map[string]interface{}) NonZeroDefaultOption
type ValueDefaulter ¶ added in v1.12.0
type ValueDefaulter interface {
SetDefault(interface{}) error
}
func NewNonZeroStructDefaulter ¶ added in v1.12.0
func NewNonZeroStructDefaulter(options ...NonZeroDefaultOption) ValueDefaulter
NewNonZeroStructDefaulter creates an implementation of the ValueDefaulter that
Click to show internal directories.
Click to hide internal directories.