Fake Client Example
This example demonstrates how to use a fake client with SharedInformerFactory in tests.
- Creating the fake client
- Setting up real informers
- Injecting events into those informers
go test -v k8s.io/client-go/examples/fake-client
Package fakeclient contains examples on how to use fakeclient in tests. Note: This file is here to avoid warnings on go build since there are no non-test files in this package.