common

package
v1.20.4-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePodsOverviewString

func GeneratePodsOverviewString(pods []corev1.Pod) string

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

func IsPodReady(pod corev1.Pod) bool

IsPodReady checks if all containers in a pod are ready (passed readiness probe).

func IsPodRunning

func IsPodRunning(pod corev1.Pod) bool

IsPodRunning checks if all containers in a pod are in running state.

Types

This section is empty.

Jump to

Keyboard shortcuts

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