Skip to content

Commit 9b650c1

Browse files
committed
Standalone envtest example
This adds a standalone example of envtest not being used in testing. It's super useful for interactive testing of controller and webhook behavior, and code I've written in various forms for a one-off at least a dozen times.
1 parent 20e3bd4 commit 9b650c1

File tree

3 files changed

+787
-0
lines changed

3 files changed

+787
-0
lines changed

examples/scratch-env/go.mod

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module sigs.k8s.io/controller-runtime/examples/scratch-env
2+
3+
go 1.15
4+
5+
require (
6+
github.com/spf13/pflag v1.0.5
7+
k8s.io/client-go v0.19.2
8+
sigs.k8s.io/controller-runtime v0.0.0-00010101000000-000000000000
9+
)
10+
11+
replace sigs.k8s.io/controller-runtime => ../..

0 commit comments

Comments
 (0)