node

package
v0.10.0-rc.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeWrapper

type NodeWrapper struct {
	corev1.Node
}

NodeWrapper wraps a Node.

func MakeNode

func MakeNode(name string) *NodeWrapper

MakeNode creates a wrapper for a Node

func (*NodeWrapper) Label

func (n *NodeWrapper) Label(k, v string) *NodeWrapper

Label adds a label to the Node

func (*NodeWrapper) Name

func (n *NodeWrapper) Name(name string) *NodeWrapper

Name updates the name of the node

func (*NodeWrapper) NotReady

func (n *NodeWrapper) NotReady() *NodeWrapper

Ready sets the Node to a not ready status condition

func (*NodeWrapper) Obj

func (n *NodeWrapper) Obj() *corev1.Node

Obj returns the inner Node.

func (*NodeWrapper) Ready

func (n *NodeWrapper) Ready() *NodeWrapper

Ready sets the Node to a ready status condition

func (*NodeWrapper) StatusAllocatable

func (n *NodeWrapper) StatusAllocatable(resourceList corev1.ResourceList) *NodeWrapper

StatusAllocatable updates the allocatable resources of the Node.

func (*NodeWrapper) StatusConditions

func (n *NodeWrapper) StatusConditions(conditions ...corev1.NodeCondition) *NodeWrapper

StatusConditions appends the given status conditions to the Node.

func (*NodeWrapper) Taints

func (n *NodeWrapper) Taints(taints ...corev1.Taint) *NodeWrapper

StatusConditions appends the given taints to the Node.

Jump to

Keyboard shortcuts

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