util

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentUser

func GetCurrentUser(defaultUser int64) (int64, error)

GetCurrentUser checks which os use that is running the app

func GetInstanceNamespace

func GetInstanceNamespace(defaultNamespace string) string

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

func PodNameExists(client *kubernetes.Clientset, podName string, namespace string) (bool, error)

PodNameExists determines if a pod with the specified name exists in the specified namespace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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