ceph-csi/vendor/k8s.io/client-go/examples/fake-client
Huamin Chen e46099a504 reconcile merge
Signed-off-by: Huamin Chen <hchen@redhat.com>
2019-01-15 16:20:41 +00:00
..
doc.go reconcile merge 2019-01-15 16:20:41 +00:00
main_test.go reconcile merge 2019-01-15 16:20:41 +00:00
README.md reconcile merge 2019-01-15 16:20:41 +00:00

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