package util
import "k8s.io/component-helpers/node/util"
Index ¶
- func GetNodeCondition(status *v1.NodeStatus, conditionType v1.NodeConditionType) (int, *v1.NodeCondition)
- func PatchNodeCIDRs(c clientset.Interface, node types.NodeName, cidrs []string) error
- func PatchNodeStatus(c v1core.CoreV1Interface, nodeName types.NodeName, oldNode *v1.Node, newNode *v1.Node) (*v1.Node, []byte, error)
- func SetNodeCondition(c clientset.Interface, node types.NodeName, condition v1.NodeCondition) error
Functions ¶
func GetNodeCondition ¶
func GetNodeCondition(status *v1.NodeStatus, conditionType v1.NodeConditionType) (int, *v1.NodeCondition)
GetNodeCondition extracts the provided condition from the given status and returns that. Returns nil and -1 if the condition is not present, and the index of the located condition.
func PatchNodeCIDRs ¶
PatchNodeCIDRs patches the specified node.CIDR=cidrs[0] and node.CIDRs to the given value.
func PatchNodeStatus ¶
func PatchNodeStatus(c v1core.CoreV1Interface, nodeName types.NodeName, oldNode *v1.Node, newNode *v1.Node) (*v1.Node, []byte, error)
PatchNodeStatus patches node status.
func SetNodeCondition ¶
SetNodeCondition updates specific node condition with patch operation.
Source Files ¶
cidr.go conditions.go status.go
Directories ¶
Path | Synopsis |
---|---|
node/util/sysctl | |
node/util/sysctl/testing |
- Version
- v0.25.13
- Published
- Aug 24, 2023
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 21 minutes ago –
Tools for package owners.