k8s

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	K8sLabelValueMaxLength = 63
)

Variables

This section is empty.

Functions

func LoggingContext

func LoggingContext(ctx context.Context, component string, k8sClient kubernetes.Interface) context.Context

Initialize The Specified Context With A K8S Client & Logger (ConfigMap Watcher)

Note - This logic represents a stepping stone on our path towards alignment with the Knative eventing-contrib implementations.

The Receiver / Dispatcher are not "injected controllers" in the knative-eventing injection framework, but still want to
leverage that implementation as much as possible to ease future refactoring.  This will allow us to use the default
knative-eventing logging configuration and dynamic updating.  To that end, we are setting up a basic context ourselves
that mirrors what the injection framework would have created.

func TruncateLabelValue

func TruncateLabelValue(str string) string

Truncate The Specified K8S Label Value To The Max

Types

This section is empty.

Jump to

Keyboard shortcuts

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