fix(examples): move examples from patchesStrategicMerge to patches

This commit is contained in:
Daniel Strebel
2023-06-09 22:32:19 +02:00
parent 336bc14e1a
commit d37c0eb477
15 changed files with 74 additions and 74 deletions

View File

@@ -150,7 +150,7 @@ Off the shelf MySQL uses `emptyDir` type volume, which
gets wiped away if the MySQL Pod is recreated, and that
is certainly not desirable for production
environment. So we want to use Persistent Disk in
production. kustomize lets you apply `patchesStrategicMerge` to the
production. kustomize lets you apply `patches` to the
resources.
<!-- @createPatchFile @testAgainstLatestRelease -->
@@ -176,8 +176,8 @@ Add the patch file to `kustomization.yaml`:
<!-- @specifyPatch @testAgainstLatestRelease -->
```
cat <<'EOF' >> $DEMO_HOME/kustomization.yaml
patchesStrategicMerge:
- persistent-disk.yaml
patches:
- path: persistent-disk.yaml
EOF
```
@@ -190,7 +190,7 @@ Lets break this down:
in deployment.yaml
- Then we added `persistent-disk.yaml` to list of
`patchesStrategicMerge` in `kustomization.yaml`. `kustomize build`
`patches` in `kustomization.yaml`. `kustomize build`
will apply this patch to the deployment resource with
the name `mysql` as defined in the patch.