Documentation
¶
Index ¶
- func EvictNodes(client kubernetes.Interface, count int) (int, error)
- func FlagNode(client kubernetes.Interface, node *Node) error
- func FlagValue(flag string) func() error
- func GenerateTestNodes(count int) []runtime.Object
- func NodeFlagged() func(*metav1.ListOptions)
- func NodeNotFlagged() func(*metav1.ListOptions)
- func PodNotTerminated() func(*metav1.ListOptions)
- func PodOnNode(name string) func(*metav1.ListOptions)
- func Setup(opts ...func() error) error
- type Node
- type Pod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvictNodes ¶
func EvictNodes(client kubernetes.Interface, count int) (int, error)
EvictNodes finds a set number of random nodes to evict, and drains them of all their pods
func FlagNode ¶
func FlagNode(client kubernetes.Interface, node *Node) error
FlagNode marks a specific node as needing to be rolled
func GenerateTestNodes ¶
GenerateTestNodes generated a set number of valid and flagged nodes for tests
func NodeFlagged ¶
func NodeFlagged() func(*metav1.ListOptions)
NodeFlagged allows filtering to find only the flagged nodes in GetNodes
func NodeNotFlagged ¶
func NodeNotFlagged() func(*metav1.ListOptions)
NodeNotFlagged allows filtering to find only nodes that are not flagged in GetNodes
func PodNotTerminated ¶
func PodNotTerminated() func(*metav1.ListOptions)
PodNotTerminated filters the specific pods to find by not being terminated
func PodOnNode ¶
func PodOnNode(name string) func(*metav1.ListOptions)
PodOnNode filters the pods to find by a specific node name
Types ¶
type Node ¶
Node represents a kubernetes node
func FindNode ¶
func FindNode(client kubernetes.Interface, name string) (*Node, error)
FindNode finds a specific node by name
func GetNodes ¶
func GetNodes(client kubernetes.Interface, opts ...func(*metav1.ListOptions)) ([]*Node, error)
GetNodes lists nodes with optional filters
Click to show internal directories.
Click to hide internal directories.