Documentation ¶
Index ¶
- func GetCurrentUser(defaultUser int64) (int64, error)
- func GetInstanceNamespace(defaultNamespace string) string
- func GetOwnerRef(client *kubernetes.Clientset, namespace string) ([]metav1.OwnerReference, error)
- func PodKill(client *kubernetes.Clientset, podName string, namespace string, ...) error
- func PodNameExists(client *kubernetes.Clientset, podName string, namespace string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentUser ¶
GetCurrentUser checks which os use that is running the app
func GetInstanceNamespace ¶
func GetOwnerRef ¶
func GetOwnerRef(client *kubernetes.Clientset, namespace string) ([]metav1.OwnerReference, error)
GetOwnerRef fetches the UID from the pod and returns OwnerReference
func PodKill ¶ added in v2.3.0
func PodKill(client *kubernetes.Clientset, podName string, namespace string, gracePeriod int64) error
PodKill waits a number of seconds determined by the user, then deletes the chosen pod in the namespace specified
func PodNameExists ¶ added in v2.3.0
PodNameExists determines if a pod with the specified name exists in the specified namespace.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.