Add client-go example using fake client in test.

This adds an example showing the steps needed to get a working
SharedInformerFactory with a fake client for testing.

Kubernetes-commit: aed487b42d1b49df9ac01f7234896f6d1b4da166
This commit is contained in:
Jonathan Basseri
2018-06-20 18:35:57 -07:00
committed by Kubernetes Publisher
parent 2a94c229c0
commit c72a3893b1
3 changed files with 95 additions and 0 deletions

View File

@@ -25,3 +25,7 @@ for client-go.
the custom resources.
[informer]: https://godoc.org/k8s.io/client-go/tools/cache#NewInformer
### Testing
- [**Fake Client**](./fake-client): Use a fake client in tests.