mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-01 07:07:15 +00:00
client-go workqueue example
Demonstrates how to compose a controller out of cache.Controller, cache.Indexer and a workqueue. Kubernetes-commit: b39b3ba01675828c13bc0dea67d5114b4c225644
This commit is contained in:
committed by
Kubernetes Publisher
parent
1baf68dddb
commit
3e24501bb6
17
examples/workqueue/README.md
Normal file
17
examples/workqueue/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# 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
|
||||
```
|
Reference in New Issue
Block a user