We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bfc84e commit 3b1ccc2Copy full SHA for 3b1ccc2
docs/book/src/cronjob-tutorial/testdata/finalizer_example.go
@@ -49,7 +49,7 @@ The code snippet below shows skeleton code for implementing a finalizer.
49
func (r *CronJobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
50
log := r.Log.WithValues("cronjob", req.NamespacedName)
51
52
- var cronJob *batchv1.CronJob
+ cronJob := &batchv1.CronJob{}
53
if err := r.Get(ctx, req.NamespacedName, cronJob); err != nil {
54
log.Error(err, "unable to fetch CronJob")
55
// we'll ignore not-found errors, since they can't be fixed by an immediate
0 commit comments