client-gok8s.io/client-go/tools/record/util Index | Files

package util

import "k8s.io/client-go/tools/record/util"

Index

Functions

func GenerateEventName

func GenerateEventName(refName string, unixNano int64) string

GenerateEventName generates a valid Event name from the referenced name and the passed UNIX timestamp. The referenced Object name may not be a valid name for Events and cause the Event to fail to be created, so we need to generate a new one in that case. Ref: https://issues.k8s.io/127594

func IsKeyNotFoundError

func IsKeyNotFoundError(err error) bool

IsKeyNotFoundError is utility function that checks if an error is not found error

func ValidateEventType

func ValidateEventType(eventtype string) bool

ValidateEventType checks that eventtype is an expected type of event

Source Files

util.go

Version
v0.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
2 hours ago

Tools for package owners.