Skip to content

Commit 28f670e

Browse files
authored
Merge pull request #871 from mengqiy/fixschemeinbook
📖 add the missing scheme back
2 parents 94c206b + 30717ac commit 28f670e

File tree

1 file changed

+1
-0
lines changed
  • docs/book/src/cronjob-tutorial/testdata/project

1 file changed

+1
-0
lines changed

docs/book/src/cronjob-tutorial/testdata/project/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func main() {
8686
if err = (&controllers.CronJobReconciler{
8787
Client: mgr.GetClient(),
8888
Log: ctrl.Log.WithName("controllers").WithName("Captain"),
89+
Scheme: mgr.GetScheme(), // we've added this ourselves
8990
}).SetupWithManager(mgr); err != nil {
9091
setupLog.Error(err, "unable to create controller", "controller", "Captain")
9192
os.Exit(1)

0 commit comments

Comments
 (0)