package test

import "k8s.io/kubernetes/pkg/controller/nodeipam/ipam/test"

Index

Constants

const NodePollInterval = 10 * time.Millisecond

Variables

var AlwaysReady = func() bool { return true }

Functions

func FakeNodeInformer

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

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

Source Files

utils.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
9 packages
Last checked
3 hours ago

Tools for package owners.