Skip to content

Commit

Permalink
Standalone envtest example
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DirectXMan12 committed Oct 1, 2020
1 parent 20e3bd4 commit 9b650c1
Show file tree
Hide file tree
Showing 3 changed files with 787 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/scratch-env/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module sigs.k8s.io/controller-runtime/examples/scratch-env

go 1.15

require (
github.com/spf13/pflag v1.0.5
k8s.io/client-go v0.19.2
sigs.k8s.io/controller-runtime v0.0.0-00010101000000-000000000000
)

replace sigs.k8s.io/controller-runtime => ../..
Loading

0 comments on commit 9b650c1

Please sign in to comment.