client-go/examples/workqueue
astraw99 a9a86ad864 unify worker num to workers
Kubernetes-commit: e6df935fd30c56a8ece0da6152c60fc725d942b7
2021-08-09 10:48:53 +08:00
..
main.go unify worker num to workers 2021-08-09 10:48:53 +08:00
README.md Remove non-existent log option 2021-03-06 16:23:06 +09:00

Workqueue Example

This example demonstrates how to write a controller which follows the states of watched resources.

It demonstrates how to:

  • combine the workqueue with a cache to a full controller
  • synchronize the controller on startup

The example is based on https://git.k8s.io/community/contributors/devel/sig-api-machinery/controllers.md.

Running

# if outside of the cluster
go run *.go -kubeconfig=/my/config