utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IgnoreAllDaemonSets, _ = strconv.ParseBool(os.Getenv("IGNORE_ALL_DAEMONSETS"))
	DeleteEmptyDirData, _  = strconv.ParseBool(os.Getenv("DELETE_EMPTY_DIR_DATA"))
	ForceDeletePods, _     = strconv.ParseBool(os.Getenv("FORCE_DELETE_PODS"))
)

Functions

func BuildDrainHelper

func BuildDrainHelper() *drain.Helper

func GetClusterConfig

func GetClusterConfig() (*rest.Config, error)

func GetKubernetesClient

func GetKubernetesClient() (*kubernetes.Clientset, error)

Types

type Node

type Node struct {
	Info *corev1.Node
}

func (Node) DrainNode

func (n Node) DrainNode() error

func (Node) UncordonNode

func (n Node) UncordonNode() error

Jump to

Keyboard shortcuts

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