Skip to content

Commit 047077a

Browse files
committed
fix minor typos
1 parent a5a1bf2 commit 047077a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/book/src/cronjob-tutorial/testdata/project/controllers/cronjob_controller.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ func (r *CronJobReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
447447
}
448448

449449
/*
450-
Once we've figured out what to do with existing jobs, we'll actually create our desired job
450+
Once we've figured out what to do with existing jobs, we'll actually create our desired job
451451
*/
452452

453453
/*
@@ -508,7 +508,7 @@ func (r *CronJobReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
508508
/*
509509
### 7: Requeue when we either see a running job or it's time for the next scheduled run
510510
511-
Finally, we'll return the result that we prepped above, that says we want to requue
511+
Finally, we'll return the result that we prepped above, that says we want to requeue
512512
when our next run would need to occur. This is taken as a maximum deadline -- if something
513513
else changes in between, like our job starts or finishes, we get modified, etc, we might
514514
reconcile again sooner.

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"flag"
2121
"os"
2222

23-
kbatchv1beta1 "k8s.io/api/batch/v1"
23+
kbatchv1 "k8s.io/api/batch/v1"
2424
"k8s.io/apimachinery/pkg/runtime"
2525
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
2626
ctrl "sigs.k8s.io/controller-runtime"
@@ -34,10 +34,10 @@ import (
3434

3535
/*
3636
The first difference to notice is that kubebuilder has added the new API
37-
group's package (`kbatchv1beta1`) to our scheme. This means that we can use those
37+
group's package (`batchv1`) to our scheme. This means that we can use those
3838
objects in our controller.
3939
40-
We'll also need to add the kubernetes batch v1 scheme, since we're creating
40+
We'll also need to add the kubernetes batch v1 (`kbatchv1`) scheme, since we're creating
4141
and listing Jobs.
4242
*/
4343
var (
@@ -47,7 +47,7 @@ var (
4747

4848
func init() {
4949

50-
kbatchv1beta1.AddToScheme(scheme) // we've added this ourselves
50+
kbatchv1.AddToScheme(scheme) // we've added this ourselves
5151
batchv1.AddToScheme(scheme)
5252
// +kubebuilder:scaffold:scheme
5353
}

docs/book/src/cronjob-tutorial/webhook-implementation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ If you want to implement [admission webhooks](../reference/admission-webhook.md)
44
for your CRD, the only thing you need to do is to implement the `Defaulter`
55
and (or) the `Validator` interface.
66

7-
Kubebuilder take care of the rest for you, such as
7+
Kubebuilder takes care of the rest for you, such as
88

99
1. Creating the webhook server.
1010
1. Ensuring the server has been added in the manager.

0 commit comments

Comments
 (0)