Skip to content

client-go

Version: v0.37.1

  1. clientset: a set of clients to access Kubernetes API
  2. indexer: An indexed in-memory key-value store for objects
  3. informer
    1. indexer
    2. reflector
    3. ListerWatcher
  4. lister
    1. indexer
  5. workqueue: manages controller work items and retries.
  6. reflector: watches a specified resource with listerwatcher and reflects all changes to the configured store (FIFO).
  7. listerwatcher: list and watch the API server. used in reflector.

Commands in the component walkthroughs use the versions pinned in go.mod. Run go test ./contents/kubernetes-operator/client-go/... from the repository root. Informer/cache queues update stored objects; a controller workqueue separately schedules reconciliation keys.