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 ¶
func InitMockEventRecorder ¶ added in v1.13.4
func InitMockEventRecorder() *events.FakeRecorder
Functions used for mocking package
Types ¶
type EventRecorder ¶
type EventRecorder struct { Recorder events.EventRecorder K8sClient client.Client // contains filtered or unexported fields }
func Get ¶
func Get() *EventRecorder
func (*EventRecorder) SendPodEvent ¶ added in v1.13.0
func (e *EventRecorder) SendPodEvent(eventType, reason, action, message string)
SendPodEvent will raise event on aws-node with given type, reason, & message
Click to show internal directories.
Click to hide internal directories.