event

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

func FillEventsType(events []*apiv1.Event) []*apiv1.Event

Based on event Reason fills event Type in order to allow correct filtering by Type.

func GetPodsEventByCronJobPage

func GetPodsEventByCronJobPage(kubeClient client.ResourceHandler, namespace, name string, q *basecommon.QueryParam) (*basecommon.Page, error)

func GetPodsWarningEvents

func GetPodsWarningEvents(indexer *client.CacheFactory, pods []*apiv1.Pod) ([]common.Event, error)

func IsTypeFilled

func IsTypeFilled(events []*apiv1.Event) bool

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.

Types

type ObjectCell

type ObjectCell common.Event

implements dataselector.DataCell

func (ObjectCell) GetProperty

implements dataselector.DataCell

Jump to

Keyboard shortcuts

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