readiness

package
v0.0.0-...-a7b7215 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: UPL-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DaemonSetsAreReady

func DaemonSetsAreReady(log vzlog.VerrazzanoLogger, client client.Client, namespacedNames []types.NamespacedName, prefix string) bool

DaemonSetsAreReady Check that the named daemonsets have the minimum number of specified nodes ready and available

func DeploymentsAreReady

func DeploymentsAreReady(log vzlog.VerrazzanoLogger, client clipkg.Client, namespacedNames []types.NamespacedName, prefix string) bool

DeploymentsAreReady check that the named deployments have the minimum number of specified replicas ready and available

func DeploymentsReadyBySelectors

func DeploymentsReadyBySelectors(log vzlog.VerrazzanoLogger, client clipkg.Client, prefix string, opts ...clipkg.ListOption) bool

func DoDeploymentsExist

func DoDeploymentsExist(log vzlog.VerrazzanoLogger, client clipkg.Client, namespacedNames []types.NamespacedName, _ int32, prefix string) bool

DoDeploymentsExist checks if all the named deployments exist

func DoStatefulSetsExist

func DoStatefulSetsExist(log vzlog.VerrazzanoLogger, client client.Client, namespacedNames []types.NamespacedName, _ int32, prefix string) bool

DoStatefulSetsExist checks if all the named statefulsets exist

func DoesDeploymentExist

func DoesDeploymentExist(client clipkg.Client, namespacedName types.NamespacedName) (bool, error)

DoesDeploymentsExist checks if the named deployment exists

func DoesStatefulsetExist

func DoesStatefulsetExist(client client.Client, namespacedName types.NamespacedName) (bool, error)

DoesStatefulsetExist checks if the named statefulset exists

func EnsurePodsAreReady

func EnsurePodsAreReady(log vzlog.VerrazzanoLogger, podsToCheck []corev1.Pod, expectedPods int32, prefix string) (int32, bool)

EnsurePodsAreReady makes sure pods using the latest workload revision are ready. A list of pods using the latest revision are passed to this function.

func GetPodsList

func GetPodsList(log vzlog.VerrazzanoLogger, client clipkg.Client, namespacedName types.NamespacedName, selector *metav1.LabelSelector) *corev1.PodList

GetPodsList retrieves a list of pods for a given namespace and labels selector

func PodsReadyDeployment

func PodsReadyDeployment(log vzlog.VerrazzanoLogger, client clipkg.Client, namespacedName types.NamespacedName, selector *metav1.LabelSelector, expectedReplicas int32, prefix string) bool

PodsReadyDeployment checks for an expected number of pods to be using the latest replicaset revision and are running and ready

func StatefulSetsAreReady

func StatefulSetsAreReady(log vzlog.VerrazzanoLogger, client client.Client, namespacedNames []types.NamespacedName, prefix string) bool

StatefulSetsAreReady Check that the named statefulsets have the minimum number of specified replicas ready and available

Types

This section is empty.

Jump to

Keyboard shortcuts

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