Skip to content

Commit 65162ac

Browse files
author
Mengqi Yu
committed
📖 move away from the deprecated patches field
1 parent 5b7bcab commit 65162ac

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resources:
55
- bases/batch.tutorial.kubebuilder.io_cronjobs.yaml
66
# +kubebuilder:scaffold:kustomizeresource
77

8-
patches:
8+
patchesStrategicMerge:
99
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
1010
# patches here are for enabling the conversion webhook for each CRD
1111
#- patches/webhook_in_cronjobs.yaml

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ bases:
2121
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
2222
- ../certmanager
2323

24-
patches:
24+
patchesStrategicMerge:
2525
- manager_image_patch.yaml
2626
# Protect the /metrics endpoint by putting it behind auth.
2727
# Only one of manager_auth_proxy_patch.yaml and

docs/book/src/multiversion-tutorial/testdata/project/config/crd/kustomization.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ resources:
55
- bases/batch.tutorial.kubebuilder.io_cronjobs.yaml
66
# +kubebuilder:scaffold:kustomizeresource
77

8-
patches:
8+
patchesStrategicMerge:
99
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
1010
# patches here are for enabling the conversion webhook for each CRD
1111
- patches/webhook_in_cronjobs.yaml
1212
# +kubebuilder:scaffold:kustomizepatch
1313

1414
# [CERTMANAGER] To enable webhook, uncomment all the sections with [CERTMANAGER] prefix.
1515
# patches here are for enabling the CA injection for each CRD
16-
- patches/cainjection_in_cronjobs.yaml
16+
#- patches/cainjection_in_cronjobs.yaml
1717
# +kubebuilder:scaffold:crdkustomizecainjectionpatch
1818

1919
# the following config is for teaching kustomize how to do kustomization for CRDs.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ bases:
2121
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
2222
- ../certmanager
2323

24-
patches:
24+
patchesStrategicMerge:
2525
- manager_image_patch.yaml
2626
# Protect the /metrics endpoint by putting it behind auth.
2727
# Only one of manager_auth_proxy_patch.yaml and

0 commit comments

Comments
 (0)