Documentation ¶
Index ¶
- func GetResourceHealth(obj *unstructured.Unstructured, ...) (*appv1.HealthStatus, error)
- func GetStatusFromArgoWorkflow(hook *unstructured.Unstructured) (operation appv1.OperationPhase, message string)
- func IsWorse(current, new appv1.HealthStatusCode) bool
- func SetApplicationHealth(resStatuses []appv1.ResourceStatus, liveObjs []*unstructured.Unstructured, ...) (*appv1.HealthStatus, error)
- type ArgoWorkflow
- type NodePhase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourceHealth ¶ added in v0.11.0
func GetResourceHealth(obj *unstructured.Unstructured, resourceOverrides map[string]appv1.ResourceOverride) (*appv1.HealthStatus, error)
GetResourceHealth returns the health of a k8s resource
func GetStatusFromArgoWorkflow ¶ added in v1.2.4
func GetStatusFromArgoWorkflow(hook *unstructured.Unstructured) (operation appv1.OperationPhase, message string)
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 ¶ added in v0.11.0
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 ¶
type ArgoWorkflow ¶ added in v1.2.4
An agnostic workflow object only considers Status.Phase and Status.Message. It is agnostic to the API version or any other fields.
Click to show internal directories.
Click to hide internal directories.