Documentation ¶
Index ¶
- type NodeWrapper
- func (n *NodeWrapper) Label(k, v string) *NodeWrapper
- func (n *NodeWrapper) Name(name string) *NodeWrapper
- func (n *NodeWrapper) NotReady() *NodeWrapper
- func (n *NodeWrapper) Obj() *corev1.Node
- func (n *NodeWrapper) Ready() *NodeWrapper
- func (n *NodeWrapper) StatusAllocatable(resourceList corev1.ResourceList) *NodeWrapper
- func (n *NodeWrapper) StatusConditions(conditions ...corev1.NodeCondition) *NodeWrapper
- func (n *NodeWrapper) Taints(taints ...corev1.Taint) *NodeWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeWrapper ¶
NodeWrapper wraps 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) 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.
Click to show internal directories.
Click to hide internal directories.