Skip to content

Commit

Permalink
kustomization.yaml: Use patchesStrategicMerge.
Browse files Browse the repository at this point in the history
Change "patches" to "patchesStrategicMerge".  The use of "patches" has
been deprecated since v1.0.9:

https://github.com/kubernetes-sigs/kustomize/blob/v1.0.9/pkg/types/kustomization.go#L129

With kustomize v3, this fails with a message similar to the one seen
in this issue:

kubernetes-sigs/kustomize#1373

This change should not result in any change in behavior, but makes
this kustomization.yaml no longer use a deprecated field.
  • Loading branch information
russellb committed Jul 22, 2019
1 parent 5676be2 commit 6a61331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resources:
- rbac/auth_proxy_role.yaml
- rbac/auth_proxy_role_binding.yaml

patches:
patchesStrategicMerge:
- default/manager_image_patch.yaml
# Protect the /metrics endpoint by putting it behind auth.
# Only one of manager_auth_proxy_patch.yaml and
Expand Down

0 comments on commit 6a61331

Please sign in to comment.