utils

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultPatchBackoff for patch status field
	DefaultPatchBackoff = wait.Backoff{
		Duration: 1 * time.Second,
		Steps:    3,
		Factor:   2,
		Jitter:   1.1,
	}
)

Functions

func ISVKNode added in v1.3.0

func ISVKNode(n *corev1.Node) bool

ISVKNode node is run by virtual kubelet

func IsDaemonSetPod

func IsDaemonSetPod(pod *corev1.Pod) bool

IsDaemonSetPod pod is create by daemonSet

func IsFixedNamePod added in v1.7.0

func IsFixedNamePod(pod *corev1.Pod) bool

IsFixedNamePod pod is sts

func IsWindowsOS added in v1.3.0

func IsWindowsOS() bool

func NormalizePath added in v1.3.0

func NormalizePath(path string) string

NormalizePath returns the normal path in heterogeneous platform.

func PodInfoKey added in v1.7.0

func PodInfoKey(namespace, name string) string

func PodSandboxExited

func PodSandboxExited(p *corev1.Pod) bool

PodSandboxExited pod sandbox is exited

func SetStsKinds added in v1.2.0

func SetStsKinds(kids []string)

SetStsKinds set custom sts workload kinds

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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