k8sutil

package
v0.31.5 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 13 Imported by: 7

Documentation

Index

Constants

View Source
const NotReadyTaint = "node.kubernetes.io/not-ready"
View Source
const UnreachableTaint = "node.kubernetes.io/unreachable"
View Source
const UnschedulableTaint = "node.kubernetes.io/unschedulable"

Variables

This section is empty.

Functions

func AddFlags added in v0.9.44

func AddFlags(flags *flag.FlagSet)

func GetKubeconfig added in v0.13.4

func GetKubeconfig() clientcmd.ClientConfig

func GetRESTConfig added in v0.9.44

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

func IsPodUnhealthy added in v0.18.0

func IsPodUnhealthy(pod *corev1.Pod) bool

func NodeIsReady added in v0.14.0

func NodeIsReady(node v1.Node) bool

func PortForward

func PortForward(config *restclient.Config, localPort int, remotePort int, namespace string, podName string) (chan struct{}, error)

Types

type PodStatusReason added in v0.18.0

type PodStatusReason string
const (
	PodStatusReasonRunning              PodStatusReason = "Running"
	PodStatusReasonError                PodStatusReason = "Error"
	PodStatusReasonNotReady             PodStatusReason = "NotReady"
	PodStatusReasonUnknown              PodStatusReason = "Unknown"
	PodStatusReasonShutdown             PodStatusReason = "Shutdown"
	PodStatusReasonTerminating          PodStatusReason = "Terminating"
	PodStatusReasonCrashLoopBackOff     PodStatusReason = "CrashLoopBackOff"
	PodStatusReasonImagePullBackOff     PodStatusReason = "ImagePullBackOff"
	PodStatusReasonContainerCreating    PodStatusReason = "ContainerCreating"
	PodStatusReasonPending              PodStatusReason = "Pending"
	PodStatusReasonCompleted            PodStatusReason = "Completed"
	PodStatusReasonEvicted              PodStatusReason = "Evicted"
	PodStatusReasonInitError            PodStatusReason = "Init:Error"
	PodStatusReasonInitCrashLoopBackOff PodStatusReason = "Init:CrashLoopBackOff"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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