Skip to content

Commit db9def4

Browse files
authored
Merge pull request #3427 from lauchokyip/fixDoc
📖 Fixed manager_webhook_patch not uncommented
2 parents b95924c + c9629c4 commit db9def4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/book/src/cronjob-tutorial/testdata/project/config/default/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ patchesStrategicMerge:
3636

3737
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
3838
# crd/kustomization.yaml
39-
#- manager_webhook_patch.yaml
39+
- manager_webhook_patch.yaml
4040

4141
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'.
4242
# Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks.

hack/docs/internal/cronjob-tutorial/generate_cronjob.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,11 @@ func updateKustomization(sp *Sample) {
569569
`#- ../certmanager`, `#`)
570570
CheckError("fixing default/kustomization", err)
571571

572+
err = pluginutil.UncommentCode(
573+
filepath.Join(sp.ctx.Dir, "config/default/kustomization.yaml"),
574+
`#- manager_webhook_patch.yaml`, `#`)
575+
CheckError("fixing default/kustomization", err)
576+
572577
err = pluginutil.UncommentCode(
573578
filepath.Join(sp.ctx.Dir, "config/default/kustomization.yaml"),
574579
`#- webhookcainjection`, `#`)

0 commit comments

Comments
 (0)