Documentation ¶
Index ¶
- Variables
- func ISLinJunNode(n *corev1.Node) bool
- func ISVKNode(n *corev1.Node) bool
- func IsDaemonSetPod(pod *corev1.Pod) bool
- func IsFixedNamePod(pod *corev1.Pod) bool
- func IsWindowsOS() bool
- func NormalizePath(path string) string
- func PodInfoKey(namespace, name string) string
- func PodSandboxExited(p *corev1.Pod) bool
- func RuntimeFinalStatus(status map[v1beta1.CNIStatus]*v1beta1.CNIStatusInfo) (cniStatus v1beta1.CNIStatus, cniStatusInfo *v1beta1.CNIStatusInfo, ok bool)
- func SetStsKinds(kids []string)
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 ISLinJunNode ¶ added in v1.10.0
func IsDaemonSetPod ¶
IsDaemonSetPod pod is create by daemonSet
func IsFixedNamePod ¶ added in v1.7.0
IsFixedNamePod pod is sts
func IsWindowsOS ¶ added in v1.3.0
func IsWindowsOS() bool
func NormalizePath ¶ added in v1.3.0
NormalizePath returns the normal path in heterogeneous platform.
func PodInfoKey ¶ added in v1.7.0
func PodSandboxExited ¶
PodSandboxExited pod sandbox is exited
func RuntimeFinalStatus ¶ added in v1.11.5
func RuntimeFinalStatus(status map[v1beta1.CNIStatus]*v1beta1.CNIStatusInfo) (cniStatus v1beta1.CNIStatus, cniStatusInfo *v1beta1.CNIStatusInfo, ok bool)
RuntimeFinalStatus return the latest ts, return false if not found
func SetStsKinds ¶ added in v1.2.0
func SetStsKinds(kids []string)
SetStsKinds set custom sts workload kinds
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.