eventrecorder

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 13 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

func Init added in v1.13.4

func Init(k8sClient client.Client) error

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

Jump to

Keyboard shortcuts

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