status

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: UPL-1.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright (c) 2021, 2022, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeploymentsAreReady

func DeploymentsAreReady(log vzlog.VerrazzanoLogger, client clipkg.Client, namespacedNames []types.NamespacedName, expectedReplicas int32, 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, expectedReplicas int32, 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 the named deployments exist

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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