Skip to content

Commit

Permalink
fix: Replace Kustomize field patches in examples (#8757)
Browse files Browse the repository at this point in the history
This change replaces the obsolete use of the Kustomize `patches` field
in the Skaffold examples with `patchesStrategicMerge`.

Context:
Kustomize v5 removed support for `patches` being an array of strings.

The `patchesStrategicMerge` field introduced in Kustomize v3 retains the
previous behavior of the `patches`.

The `patches` field can still be used in v5 with an array of `patch`
objects.

Additional information:
- kubernetes-sigs/kustomize#4911
- https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv5.0.0
  • Loading branch information
halvards authored May 31, 2023
1 parent ebda959 commit dc65e65
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ bases:
replicas:
- name: go-integration-coverage
count: 1
patches:
patchesStrategicMerge:
- coverage-patch.yaml
2 changes: 1 addition & 1 deletion examples/kustomize/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resources:
- deployment.yaml
patches:
patchesStrategicMerge:
- patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ bases:
replicas:
- name: go-integration-coverage
count: 1
patches:
patchesStrategicMerge:
- coverage-patch.yaml
2 changes: 1 addition & 1 deletion integration/examples/kustomize/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resources:
- deployment.yaml
patches:
patchesStrategicMerge:
- patch.yaml

0 comments on commit dc65e65

Please sign in to comment.