nodes

package
v0.0.0-...-319b14c Latest Latest
Warning

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

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

Documentation

Overview

Package nodes ...

Index

Constants

View Source
const (
	EventNodeLabel = "app=local"
)

NodesSelector represent the label selector used to filter impacted nodes.

Variables

This section is empty.

Functions

func LabelNode

func LabelNode(nodeName, key, value string) (*corev1.Node, error)

LabelNode ... label k8s nodes

Types

type NodeTopology

type NodeTopology struct {
	NodeName   string
	NodeObject *corev1.Node
}

NodeTopology ... node topology struct

func FilterNodes

func FilterNodes(nodesSelector string, toFilter []NodeTopology) ([]NodeTopology, error)

FilterNodes ... filter nodes

func GetNodes

func GetNodes() ([]NodeTopology, error)

GetNodes ... get k8s nodes

Jump to

Keyboard shortcuts

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