Documentation ¶
Index ¶
- Constants
- func AssertNodesHadUpgradeTriggered(c kubernetes.Interface, nodes ...*v1.Node) error
- func AssertNodesUnchanged(c kubernetes.Interface, nodes ...*v1.Node) error
- func CreateNode(c kubernetes.Interface, name string, labels map[string]string, ...) *v1.Node
- func CreateWindowsNode(cs kubernetes.Interface, name string, variant operator.ProductVariant, ...) *v1.Node
- 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 NewNodeListWatch(cs kubernetes.Interface) nodeListWatch
- func NewTyphaListWatch(cs kubernetes.Interface) typhaListWatch
- 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 AssertNodesHadUpgradeTriggered ¶ added in v1.23.0
func AssertNodesHadUpgradeTriggered(c kubernetes.Interface, nodes ...*v1.Node) error
func AssertNodesUnchanged ¶ added in v1.23.0
func AssertNodesUnchanged(c kubernetes.Interface, nodes ...*v1.Node) error
func CreateNode ¶ added in v1.23.0
func CreateWindowsNode ¶ added in v1.23.0
func CreateWindowsNode(cs kubernetes.Interface, name string, variant operator.ProductVariant, version string) *v1.Node
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 NewNodeListWatch ¶ added in v1.23.0
func NewNodeListWatch(cs kubernetes.Interface) nodeListWatch
func NewTyphaListWatch ¶ added in v1.23.0
func NewTyphaListWatch(cs kubernetes.Interface) typhaListWatch
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.