k8s

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildConfig

func BuildConfig(kubeconfig string) (*rest.Config, error)

func GetNetworkingCondition

func GetNetworkingCondition(
	ctx context.Context,
	kubeClient kubernetes.Interface,
	nodeName string,
) v1.ConditionStatus

func IsNodeNotReady

func IsNodeNotReady(node *v1.Node) bool

func IsNodeReady

func IsNodeReady(node *v1.Node) bool

func IsPodFinished

func IsPodFinished(pod *v1.Pod) bool

func IsStatefulSetPod

func IsStatefulSetPod(pod *v1.Pod) bool

func NewCRDClient

func NewCRDClient(kubeconfig string) (clientset.Interface, error)

NewCRDClient creates CRD client

func NewKubeClient

func NewKubeClient(kubeconfig string) (kubernetes.Interface, error)

NewKubeClient creates a k8s client

func UpdateNetworkingCondition

func UpdateNetworkingCondition(
	ctx context.Context,
	kubeClient kubernetes.Interface,
	nodeName string,
	networkReady bool,
	readyReason string,
	unReadyReason string,
	readyMsg string,
	unReadyMsg string,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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