eventrecorder

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package event recorder is used to raise events on aws-node pods

Index

Constants

View Source
const (
	EventReason = sgpp.VpcCNIEventReason
)

Variables

View Source
var MyNodeName = os.Getenv("MY_NODE_NAME")
View Source
var MyPodName = os.Getenv("MY_POD_NAME")

Functions

This section is empty.

Types

type EventRecorder

type EventRecorder struct {
	Recorder        events.EventRecorder
	RawK8SClient    client.Client
	CachedK8SClient client.Client
	HostID          string
	// contains filtered or unexported fields
}

func New added in v1.13.0

func New(rawK8SClient, cachedK8SClient client.Client) (*EventRecorder, error)

func (*EventRecorder) SendPodEvent added in v1.13.0

func (e *EventRecorder) SendPodEvent(eventType, reason, message string)

SendPodEvent will raise event on aws-node with given type, reason, & message

Jump to

Keyboard shortcuts

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