Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourceHealth ¶
func GetResourceHealth(obj *unstructured.Unstructured, resourceOverrides map[string]appv1.ResourceOverride) (*appv1.HealthStatus, error)
GetResourceHealth returns the health of a k8s resource
func IsWorse ¶
func IsWorse(current, new appv1.HealthStatusCode) bool
IsWorse returns whether or not the new health status code is a worser condition than the current
func SetApplicationHealth ¶
func SetApplicationHealth(resStatuses []appv1.ResourceStatus, liveObjs []*unstructured.Unstructured, resourceOverrides map[string]appv1.ResourceOverride, filter func(obj *unstructured.Unstructured) bool) (*appv1.HealthStatus, error)
SetApplicationHealth updates the health statuses of all resources performed in the comparison
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.