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 Sep 28, 2020
1 parent 20e3bd4 commit d756017
Show file tree
Hide file tree
Showing 3 changed files with 580 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.14

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

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

0 comments on commit d756017

Please sign in to comment.