Documentation ¶
Index ¶
- Variables
- func CreateEventList(events []v1.Event, dsQuery *dataselect.DataSelectQuery) k8scommon.EventList
- func FillEventsType(events []v1.Event) []v1.Event
- func GetClusterNodeEvent(client *kubernetes.Clientset, namespace string, field string) (*v1.EventList, error)
- func GetEvents(client *kubernetes.Clientset, namespace, resourceName string) ([]v1.Event, error)
- func GetNodeEvents(client *kubernetes.Clientset, nodeName string) (*v1.EventList, error)
- func GetPodEvents(client *kubernetes.Clientset, namespace, podName string) ([]v1.Event, error)
- func GetPodsEventWarnings(events []v1.Event, pods []v1.Pod) []common.Event
- func GetPodsEvents(client *kubernetes.Clientset, namespace string, pods []v1.Pod) ([]v1.Event, error)
- func GetResourceEvents(client *kubernetes.Clientset, dsQuery *dataselect.DataSelectQuery, ...) (*k8scommon.EventList, error)
- func ToEvent(event v1.Event) k8scommon.Event
- type EventCell
Constants ¶
This section is empty.
Variables ¶
var EmptyEventList = &k8scommon.EventList{ Events: make([]k8scommon.Event, 0), ListMeta: k8s.ListMeta{ TotalItems: 0, }, }
EmptyEventList is a empty list of events.
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 CreateEventList ¶
func CreateEventList(events []v1.Event, dsQuery *dataselect.DataSelectQuery) k8scommon.EventList
CreateEventList converts array of api events to common EventList structure
func FillEventsType ¶
FillEventsType is based on event Reason fills event Type in order to allow correct filtering by Type.
func GetClusterNodeEvent ¶
func GetNodeEvents ¶
GetNodeEvents gets events associated to node with given name.
func GetPodEvents ¶
GetPodEvents gets pods events associated to pod name and namespace
func GetPodsEventWarnings ¶
GetPodsEventWarnings returns warning pod events by filtering out events targeting only given pods
func GetPodsEvents ¶
func GetPodsEvents(client *kubernetes.Clientset, namespace string, pods []v1.Pod) ([]v1.Event, error)
GetPodsEvents gets events targeting given list of pods.
func GetResourceEvents ¶
func GetResourceEvents(client *kubernetes.Clientset, dsQuery *dataselect.DataSelectQuery, namespace, name string) (*k8scommon.EventList, error)
GetResourceEvents gets events associated to specified resource.
Types ¶
type EventCell ¶
func (EventCell) GetProperty ¶
func (self EventCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue