mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-12 13:25:29 +00:00
This adds an example showing the steps needed to get a working SharedInformerFactory with a fake client for testing. Kubernetes-commit: aed487b42d1b49df9ac01f7234896f6d1b4da166
14 lines
290 B
Markdown
14 lines
290 B
Markdown
# Fake Client Example
|
|
|
|
This example demonstrates how to use a fake client with SharedInformerFactory in tests.
|
|
|
|
It covers:
|
|
* Creating the fake client
|
|
* Setting up real informers
|
|
* Injecting events into those informers
|
|
|
|
## Running
|
|
|
|
```
|
|
go test -v k8s.io/client-go/examples/fake-client
|
|
``` |