test

package
v1.27.9 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NodePollInterval = 10 * time.Millisecond

Variables

View Source
var AlwaysReady = func() bool { return true }

Functions

func FakeNodeInformer added in v1.25.0

func FakeNodeInformer(fakeNodeHandler *testutil.FakeNodeHandler) coreinformers.NodeInformer

FakeNodeInformer creates a fakeNodeInformer using the provided fakeNodeHandler.

func MustParseCIDR

func MustParseCIDR(s string) *net.IPNet

MustParseCIDR returns the CIDR range parsed from s or panics if the string cannot be parsed.

func WaitForUpdatedNodeWithTimeout added in v1.25.0

func WaitForUpdatedNodeWithTimeout(nodeHandler *testutil.FakeNodeHandler, number int, timeout time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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