mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-02 07:35:21 +00:00
This adds an example showing the steps needed to get a working SharedInformerFactory with a fake client for testing. Kubernetes-commit: aed487b42d1b49df9ac01f7234896f6d1b4da166
290 B
290 B
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