Skip to content

Commit 84a29b7

Browse files
committed
enabled reconciler-example in api scaffolding
1 parent 2f1a3c7 commit 84a29b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/kubebuilder/v1/api.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,5 +171,7 @@ func ResourceForFlags(f *flag.FlagSet) *resource.Resource {
171171
f.StringVar(&r.Group, "group", "", "resource Group")
172172
f.StringVar(&r.Version, "version", "", "resource Version")
173173
f.BoolVar(&r.Namespaced, "namespaced", true, "resource is namespaced")
174+
f.BoolVar(&r.CreateExampleReconcileBody, "example", true,
175+
"true if an example reconcile body should be written")
174176
return r
175177
}

0 commit comments

Comments
 (0)