utils

package
v1.99.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHealth

func CheckHealth(obj client.Object) (bool, error)

CheckHealth checks whether the given object is healthy. It returns a bool indicating whether the object was actually checked and an error if any health check failed.

func FetchAdditionalFailureMessage

func FetchAdditionalFailureMessage(ctx context.Context, c client.Client, obj client.Object) (string, error)

FetchAdditionalFailureMessage fetches warning event messages for some objects as additional failure information.

func HealthStatusChanged

func HealthStatusChanged(log logr.Logger) predicate.Predicate

HealthStatusChanged returns a predicate that filters for events that indicate a change in the object's health status.

func IsIgnored

func IsIgnored(obj client.Object) bool

IsIgnored returns true when the resources.gardener.cloud/ignore annotation has a truthy value.

func MapToOriginManagedResource

func MapToOriginManagedResource(clusterID string) mapper.MapFunc

MapToOriginManagedResource is a mapper.MapFunc for resources to their origin ManagedResource.

Types

This section is empty.

Jump to

Keyboard shortcuts

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