healthchecks

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreObjectsHealthy

func AreObjectsHealthy(ctx context.Context, client client.Client, objects []client.Object) error

AreObjectsHealthy checks if the given resources are healthy. It returns a nil error if all the resources are healthy, if any resource is not healthy, the error will contain the GVK + namespace/resourceName and the error message of each unhealthy resource.

The current list of supported resources is: - Deployments - StatefulSets - DaemonSets - ReplicaSets - Pods - APIServices - CustomResourceDefinitions - Jobs - Services - PersistentVolumeClaims - PodDisruptionBudgets

If the resource is not supported, it is assumed to be healthy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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