ceph-csi/vendor/k8s.io/client-go/examples/workqueue
Serguei Bezverkhi 7b24313bd6 vendor files
2018-01-10 13:42:26 -05:00
..
BUILD vendor files 2018-01-10 13:42:26 -05:00
main.go vendor files 2018-01-10 13:42:26 -05:00
README.md vendor files 2018-01-10 13:42:26 -05: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/controllers.md.

Running

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