Skip to content

Commit 77bc895

Browse files
authored
Merge pull request #3374 from Sajiyah-Salat/sajiyah#3372
✨ (kustomize/v2) Remove deprecated syntax usage by replacing patchesStrategicMerge with patches
2 parents 6c11f05 + 818e880 commit 77bc895

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resources:
55
- bases/config.tutorial.kubebuilder.io_projectconfigs.yaml
66
#+kubebuilder:scaffold:crdkustomizeresource
77

8-
patchesStrategicMerge:
8+
patches:
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_projectconfigs.yaml

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resources:
55
- bases/batch.tutorial.kubebuilder.io_cronjobs.yaml
66
#+kubebuilder:scaffold:crdkustomizeresource
77

8-
patchesStrategicMerge:
8+
patches:
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

pkg/plugins/common/kustomize/v2/scaffolds/internal/templates/config/crd/kustomization.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var kustomizationTemplate = `# This kustomization.yaml is not intended to be run
110110
resources:
111111
%s
112112
113-
patchesStrategicMerge:
113+
patches:
114114
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
115115
# patches here are for enabling the conversion webhook for each CRD
116116
%s

testdata/project-v4-config/config/crd/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ resources:
77
- bases/crew.testproject.org_admirals.yaml
88
#+kubebuilder:scaffold:crdkustomizeresource
99

10-
patchesStrategicMerge:
10+
patches:
1111
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
1212
# patches here are for enabling the conversion webhook for each CRD
1313
#- patches/webhook_in_captains.yaml

testdata/project-v4-declarative-v1/config/crd/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ resources:
77
- bases/crew.testproject.org_admirals.yaml
88
#+kubebuilder:scaffold:crdkustomizeresource
99

10-
patchesStrategicMerge:
10+
patches:
1111
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
1212
# patches here are for enabling the conversion webhook for each CRD
1313
#- patches/webhook_in_captains.yaml

testdata/project-v4-multigroup/config/crd/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ resources:
1414
- bases/testproject.org_lakers.yaml
1515
#+kubebuilder:scaffold:crdkustomizeresource
1616

17-
patchesStrategicMerge:
17+
patches:
1818
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
1919
# patches here are for enabling the conversion webhook for each CRD
2020
#- patches/webhook_in_captains.yaml

testdata/project-v4-with-deploy-image/config/crd/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resources:
66
- bases/example.com.testproject.org_busyboxes.yaml
77
#+kubebuilder:scaffold:crdkustomizeresource
88

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

testdata/project-v4/config/crd/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ resources:
77
- bases/crew.testproject.org_admirales.yaml
88
#+kubebuilder:scaffold:crdkustomizeresource
99

10-
patchesStrategicMerge:
10+
patches:
1111
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
1212
# patches here are for enabling the conversion webhook for each CRD
1313
#- patches/webhook_in_captains.yaml

0 commit comments

Comments
 (0)