package util
import "k8s.io/client-go/tools/record/util"
Index ¶
- func GenerateEventName(refName string, unixNano int64) string
- func IsKeyNotFoundError(err error) bool
- func ValidateEventType(eventtype string) bool
Functions ¶
func GenerateEventName ¶
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 ¶
IsKeyNotFoundError is utility function that checks if an error is not found error
func ValidateEventType ¶
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.