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 ¶
Truncate The Specified K8S Label Value To The Max
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.