crstatusevent

package
v0.38.6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithCRStatus

func ContextWithCRStatus(ctx context.Context, kubeEventSink *record.EventSink, component string, source runtime.Object, logf func(format string, args ...interface{})) context.Context

func UpdateFromConfigMap added in v0.31.0

func UpdateFromConfigMap(client *CRStatusEventClient) func(configMap *corev1.ConfigMap)

UpdateFromConfigMap returns an updater function to be used with ConfigWatcher, that given an observability ConfigMap updates the client's Event Recorder configuration.

Types

type CRStatusEventClient

type CRStatusEventClient struct {
	// contains filtered or unexported fields
}

func GetDefaultClient

func GetDefaultClient() *CRStatusEventClient

func NewCRStatusEventClient

func NewCRStatusEventClient(metricMap map[string]string) *CRStatusEventClient

func (*CRStatusEventClient) ReportCRStatusEvent

func (c *CRStatusEventClient) ReportCRStatusEvent(ctx context.Context, result protocol.Result)

Jump to

Keyboard shortcuts

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