Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsWorse ¶
func IsWorse(current, new HealthStatusCode) bool
IsWorse returns whether or not the new health status code is a worser condition than the current
Types ¶
type ArgoWorkflow ¶
An agnostic workflow object only considers Status.Phase and Status.Message. It is agnostic to the API version or any other fields.
type HealthOverride ¶
type HealthOverride interface {
GetResourceHealth(obj *unstructured.Unstructured) (*HealthStatus, error)
}
type HealthStatus ¶
type HealthStatus struct { Status HealthStatusCode `json:"status,omitempty"` Message string `json:"message,omitempty"` }
func GetResourceHealth ¶
func GetResourceHealth(obj *unstructured.Unstructured, healthOverride HealthOverride) (health *HealthStatus, err error)
GetResourceHealth returns the health of a k8s resource
type HealthStatusCode ¶
type HealthStatusCode string
const ( HealthStatusUnknown HealthStatusCode = "Unknown" HealthStatusProgressing HealthStatusCode = "Progressing" HealthStatusHealthy HealthStatusCode = "Healthy" HealthStatusSuspended HealthStatusCode = "Suspended" HealthStatusDegraded HealthStatusCode = "Degraded" HealthStatusMissing HealthStatusCode = "Missing" )
Click to show internal directories.
Click to hide internal directories.