Documentation ¶
Index ¶
- func GeneratePodsOverviewString(pods []corev1.Pod) string
- func GetPodsByOwner(client v1.CoreV1Interface, ownerUID types.UID, namespace string) ([]corev1.Pod, error)
- func GetStorageClassForPVC(client v1.StorageV1Interface, pvc *corev1.PersistentVolumeClaim) (*storagev1.StorageClass, error)
- func IsPVCShared(pvc *corev1.PersistentVolumeClaim) bool
- func IsPodReady(pod corev1.Pod) bool
- func IsPodRunning(pod corev1.Pod) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePodsOverviewString ¶
GeneratePodsOverviewString returns a string description of pods.
func GetPodsByOwner ¶
func GetPodsByOwner(client v1.CoreV1Interface, ownerUID types.UID, namespace string) ([]corev1.Pod, error)
GetPodsByOwner returns pods for the given owner and namespace
func GetStorageClassForPVC ¶
func GetStorageClassForPVC(client v1.StorageV1Interface, pvc *corev1.PersistentVolumeClaim) (*storagev1.StorageClass, error)
GetStorageClassForPVC tries to find a storage class by pvc spec definitions or by pvc annotations.
func IsPVCShared ¶
func IsPVCShared(pvc *corev1.PersistentVolumeClaim) bool
IsPVCShared returns true if the PersistentVolumeClaim has been configured for use by multiple clients.
func IsPodReady ¶
IsPodReady checks if all containers in a pod are ready (passed readiness probe).
func IsPodRunning ¶
IsPodRunning checks if all containers in a pod are in running state.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.