mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-09 02:50:04 +00:00
The fakeclient package does not have any non-test go files. This causes `go build` to give a warning: `no non-test Go files in ...`. This also causes the publishing bot to fail. This PR adds a dummy doc.go file in the package to avoid this warning. Kubernetes-commit: 764ae69671428987d77898b2d3c48c6c003e2fd4
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