mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-29 16:37:40 +00:00
Signed-off-by: Yassine TIJANI <ytijani@vmware.com> Kubernetes-commit: 7e4c3096fe71afc6a23c273b3309ed5db7289d8c
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 -logtostderr=true