Files
client-go/examples/workqueue
Chao Xu 384737846d bazel
Kubernetes-commit: 958903509c29fdfe216c0bbf0abce1ce0abd59a6
2017-04-28 20:28:26 +00:00
..
2017-04-28 20:28:26 +00:00
2017-04-28 20:28:25 +00:00
2017-04-21 20:28:22 +00: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://github.com/kubernetes/community/blob/master/contributors/devel/controllers.md.

Running

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