Skip to content

Commit

Permalink
Remove deprecated syntax
Browse files Browse the repository at this point in the history
The `patchesStrategicMerge` keyword has been deprecated for a while [1]; we
should be using the `patches` keyword for both strategic merge and
JSONPatch patches.

[1]: kubernetes-sigs/kustomize#5052
  • Loading branch information
larsks committed Nov 28, 2023
1 parent 9ce01ed commit 69f9828
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions acct-mgt/overlays/nerc-ocp-prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ namespace: acct-mgt
resources:
- ../../base
- externalsecret.yaml
patchesStrategicMerge:
- patches/configmap_patch.yaml
- patches/deployment_patch.yaml
patches:
- path: patches/configmap_patch.yaml
- path: patches/deployment_patch.yaml
4 changes: 2 additions & 2 deletions dex/overlays/nerc-ocp-infra/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ namespace: dex
resources:
- ../../base
- configmaps
patchesStrategicMerge:
- externalsecrets/dex-clients_patch.yaml
patches:
- path: externalsecrets/dex-clients_patch.yaml
4 changes: 2 additions & 2 deletions logging/overlays/nerc-ocp-infra/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ kind: Kustomization
resources:
- ../../base

patchesStrategicMerge:
- externalsecrets/openshift-logging-lokistack-gateway-bearer-token_patch.yaml
patches:
- path: externalsecrets/openshift-logging-lokistack-gateway-bearer-token_patch.yaml
6 changes: 3 additions & 3 deletions logging/overlays/nerc-ocp-prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ kind: Kustomization
resources:
- ../../base

patchesStrategicMerge:
- externalsecrets/openshift-logging-lokistack-gateway-bearer-token_patch.yaml
- clusterlogforwarders/instance_patch.yaml
patches:
- path: externalsecrets/openshift-logging-lokistack-gateway-bearer-token_patch.yaml
- path: clusterlogforwarders/instance_patch.yaml
4 changes: 2 additions & 2 deletions loki/overlays/nerc-ocp-infra/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ kind: Kustomization
resources:
- ../../base

patchesStrategicMerge:
- externalsecrets/loki-thanos-object-storage_patch.yaml
patches:
- path: externalsecrets/loki-thanos-object-storage_patch.yaml

0 comments on commit 69f9828

Please sign in to comment.