node

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package node was copied from staging/src/k8s.io/component-helpers/node/util/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeIPs

func GetNodeIPs(node *v1.Node) ([]netip.Addr, error)

GetNodeIPs return the list of node IPs.

func PatchNodeCIDR

func PatchNodeCIDR(c clientset.Interface, node types.NodeName, cidr string) error

PatchNodeCIDR patches the specified node's CIDR to the given value. nolint:nlreturn,nilerr,wsl

func PatchNodeCIDRs

func PatchNodeCIDRs(ctx context.Context, c clientset.Interface, node types.NodeName, cidrs []string) error

PatchNodeCIDRs patches the specified node.CIDR=cidrs[0] and node.CIDRs to the given value. nolint:nlreturn,nilerr,wsl

func SetNodeCondition

func SetNodeCondition(c clientset.Interface, node types.NodeName, condition v1.NodeCondition) error

SetNodeCondition updates specific node condition with patch operation. nolint:nlreturn,nilerr,wsl

Types

This section is empty.

Jump to

Keyboard shortcuts

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