utils

package
v1.32.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// CIDRAssignmentFailedStatus is the event when the Pod CIDR is failed to assign to a Node
	CIDRAssignmentFailedStatus = "CIDRAssignmentFailed"
)

Variables

This section is empty.

Functions

func PatchNodeCIDR

func PatchNodeCIDR(ctx context.Context, kubeclientset kubernetes.Interface, name, cidr string) error

PatchNodeCIDR patches the specified node's CIDR to the given value.

func PatchNodeCIDRWithRetry

func PatchNodeCIDRWithRetry(ctx context.Context, kubeclientset kubernetes.Interface, node *corev1.Node, cidr string, recorder record.EventRecorder) error

PatchNodeCIDRWithRetry patches the specified node's CIDR to the given value with retries

func RecordNodeCIDRAssignmentFailed

func RecordNodeCIDRAssignmentFailed(ctx context.Context, node *corev1.Node, recorder record.EventRecorder)

RecordNodeCIDRAssignmentFailed records an event related to a node CIDR assignment failure.

func RecordNodeStatusChange

func RecordNodeStatusChange(ctx context.Context, node *corev1.Node, newStatus string, recorder record.EventRecorder)

RecordNodeStatusChange records an event related to a node status change. (Common to lifecycle and ipam)

Types

This section is empty.

Jump to

Keyboard shortcuts

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