Documentation ¶
Index ¶
- Variables
- func ExecAndLogCommand(logCommand bool, timeout time.Duration, name string, arg ...string) ([]byte, error)
- func IsNodeReachable(nodeName string) bool
- func IsSingleNodeCluster() (bool, error)
- func LabelNode(nodeName, key, value string) (*corev1.Node, error)
- func LabeledNodesCount(label string) (int, error)
- func MatchingOptionalSelectorPTP(toFilter []ptpv1.NodePtpDevice) ([]ptpv1.NodePtpDevice, error)
- func RebootNode(pod corev1.Pod, nodeName string)
- func WaitForNodeReachability(nodeName string, timeout time.Duration, expectedReachabilityStatus bool)
- type NodeTopology
Constants ¶
This section is empty.
Variables ¶
View Source
var NodesSelector string
NodesSelector represent the label selector used to filter impacted nodes.
Functions ¶
func ExecAndLogCommand ¶
func IsNodeReachable ¶
func IsSingleNodeCluster ¶
func LabeledNodesCount ¶
LabeledNodesCount return the number of nodes with the given label.
func MatchingOptionalSelectorPTP ¶
func MatchingOptionalSelectorPTP(toFilter []ptpv1.NodePtpDevice) ([]ptpv1.NodePtpDevice, error)
MatchingOptionalSelectorPTP filter the given slice with only the nodes matching the optional selector. If no selector is set, it returns the same list. The NODES_SELECTOR must be set with a labelselector expression. For example: NODES_SELECTOR="sctp=true"
func RebootNode ¶
Types ¶
type NodeTopology ¶
func PtpEnabled ¶
func PtpEnabled(aclient *client.ClientSet) ([]*NodeTopology, error)
PtpEnabled returns the topology of a given node, filtering using the given selector.
Click to show internal directories.
Click to hide internal directories.