k8s.io/client-go@v0.31.1/examples/workqueue/README.md (about) 1 # Workqueue Example 2 3 This example demonstrates how to write a controller which follows the states 4 of watched resources. 5 6 It demonstrates how to: 7 * combine the workqueue with a cache to a full controller 8 * synchronize the controller on startup 9 10 The example is based on https://git.k8s.io/community/contributors/devel/sig-api-machinery/controllers.md. 11 12 ## Running 13 14 ``` 15 # if outside of the cluster 16 go run *.go -kubeconfig=/my/config 17 ```