Documentation
¶
Index ¶
- Variables
- func ISVKNode(n *corev1.Node) bool
- func IsDaemonSetPod(pod *corev1.Pod) bool
- func IsStsPod(pod *corev1.Pod) bool
- func IsWindowsOS() bool
- func Max(a, b int) int
- func Minimal(a int) int
- func NormalizePath(path string) string
- func PodSandboxExited(p *corev1.Pod) bool
- func RegisterClients(restConfig *rest.Config)
- func SetStsKinds(kids []string)
- func TrimStr(s string, l int) string
Constants ¶
This section is empty.
Variables ¶
View Source
var APIExtensionsClient apiextensionsclient.Interface
APIExtensionsClient k8s client set
View Source
var ( // DefaultPatchBackoff for patch status field DefaultPatchBackoff = wait.Backoff{ Duration: 1 * time.Second, Steps: 3, Factor: 2, Jitter: 1.1, } )
View Source
var K8sClient kubernetes.Interface
K8sClient k8s client set
View Source
var NetworkClient networkingclientset.Interface
NetworkClient network client set
Functions ¶
func IsDaemonSetPod ¶
IsDaemonSetPod pod is create by daemonSet
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 PodSandboxExited ¶
PodSandboxExited pod sandbox is exited
func RegisterClients ¶
RegisterClients create all k8s clients
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.