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
Click to show internal directories.
Click to hide internal directories.