# Functions
CallerName get the caller program file name, line number and function name in "fileName:line# funcName".
ErrorWithStack print stack trace for error message.
Find check if an element in the slice.
FormatTimestamp with unix seconds in float format i.e.
NewClusterWatcher creates a new ClusterWatcher.
NewLogger create new Logger*/.
SetLoggingLevel get logging level value from CR and reset the logger level.
# Constants
AddFunc - function type for resource add events.
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
AppAutoCreate ...
AppAutoCreated ...
AppAutoCreateKinds ...
AppAutoCreateLabel ...
AppAutoCreateLabelValues ...
AppAutoCreateName ...
AppAutoCreateVersion ...
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
DefaultBatchDuration - interval to batch resources before processing.
DeleteFunc - function type for resource delete events.
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
LogLevelAll request all traces.
LogLevelDebug request debug trace.
LogLevelEntry request entry trace.
LogLevelError request error trace.
LogLevelInfo request info trace.
LogLevelNone request no trace.
LogLevelWarning request warning trace.
LogTypeDebug debug trace type.
LogTypeEntry entry trace type.
LogTypeError error trace type.
LogTypeExit exit trace type.
LogTypeInfo info trace type.
LogTypeWarning warning trace type.
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
OperatorDoesNotExist - label does not exist.
OperatorExists - label exists.
OperatorIn - label matches expression.
OperatorNotIn - label does not match expression.
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
UpdateFunc - function type for resource update events.
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
kAppNav Status Controller
client-go Cluster Watcher queue channel
+----------+ +-------------+
kind1 ->| kind 1 |-> +rate limiting| --> handler 1 --> batchStore
store+controller | | |queue | ^ ^ |
+----------+ +-------------+ | | |
kind2 | kind 2 |-> |rate limiting| ------- | V
store +controller | | +queue | | batch
+----------+ +-------------+ | processor
| ..
# Variables
CRDNewHandler processes changes to Custom Resource Definitions.
KAppNavHandler processes changes to the KAppNav custom resource.
# Structs
ClusterWatcher watches all resources for one Kube cluster.
ControllerPlugin contains dependencies to the controller that can be mocked by unit test.
HandlerManager contains event handlers for all GVRs.
HandlersForOneGVR contains event handlers for one GVR.
KappnavResourceInfo contains info from a KAppNav resource.
Message JSON structure.
ResourceWatcher stores information about one GVR being watched.
# Interfaces
Logger interfaces*/.