kubectl/vendor/k8s.io/client-go/examples/workqueue
Hannes Hörl 849d4f9e39 Switch to repo-global vendoring, move dependencies
Actually now put the dependencies into the global `vendor` direcotry.
2017-11-29 12:34:54 +00:00
..
BUILD Switch to repo-global vendoring, move dependencies 2017-11-29 12:34:54 +00:00
README.md Switch to repo-global vendoring, move dependencies 2017-11-29 12:34:54 +00:00
main.go Switch to repo-global vendoring, move dependencies 2017-11-29 12:34:54 +00:00

README.md

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