Documentation
¶
Overview ¶
Package utils provides context helper functions and keys used by extension reconcile functions to access controller-runtime primitives (logger, client and scheme). Values are injected into the context by the extension controller before invoking user Reconcile logic. These helpers intentionally avoid introducing additional dependencies for extension authors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientKey = clientKeyType{}
ClientKey is the context key under which the controller-runtime client is stored.
View Source
var SchemeKey = schemeKeyType{}
SchemeKey is the context key under which the runtime.Scheme is stored.
Functions ¶
func ClientFromContext ¶
ClientFromContext returns a client from the context.
func LoggerFromContext ¶
LoggerFromContext returns a logger from the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.