Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var FailedReasonPartials = []string{"failed", "err", "exceeded", "invalid", "unhealthy",
"mismatch", "insufficient", "conflict", "outof", "nil", "backoff"}
FailedReasonPartials is an array of partial strings to correctly filter warning events. Have to be lower case for correct case insensitive comparison. Based on k8s official events reason file: https://github.com/kubernetes/kubernetes/blob/886e04f1fffbb04faf8a9f9ee141143b2684ae68/pkg/kubelet/events/event.go Partial strings that are not in event.go file are added in order to support older versions of k8s which contained additional event reason messages.
Functions ¶
func FillEventsType ¶
Based on event Reason fills event Type in order to allow correct filtering by Type.
func GetPodsWarningEvents ¶
func IsTypeFilled ¶
IsTypeFilled returns true if all given events type is filled, false otherwise. This is needed as some older versions of kubernetes do not have Type property filled.
func ListEvents ¶
Types ¶
This section is empty.