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 ¶
- func DeploymentsAreReady(log vzlog.VerrazzanoLogger, client clipkg.Client, ...) bool
- func DeploymentsReadyBySelectors(log vzlog.VerrazzanoLogger, client clipkg.Client, expectedReplicas int32, ...) bool
- func DoDeploymentsExist(log vzlog.VerrazzanoLogger, client clipkg.Client, ...) bool
- func EnsurePodsAreReady(log vzlog.VerrazzanoLogger, podsToCheck []corev1.Pod, expectedPods int32, ...) (int32, bool)
- func GetPodsList(log vzlog.VerrazzanoLogger, client clipkg.Client, ...) *corev1.PodList
- func PodsReadyDeployment(log vzlog.VerrazzanoLogger, client clipkg.Client, ...) bool
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.