docs: Update patchesStrategicMerge documentation

This commit is contained in:
Richard Marshall
2019-07-21 23:06:41 -07:00
parent 0e5206a251
commit 9481e3fba6
2 changed files with 7 additions and 3 deletions

View File

@@ -339,6 +339,11 @@ patchesStrategicMerge:
image: nignx:latest
```
Note that kustomize does not support more than one patch
for the same object that contain a _delete_ directive. To remove
several fields / slice elements from an object create a single
patch that performs all the needed deletions.
### patchesJson6902
Each entry in this list should resolve to

View File

@@ -376,9 +376,8 @@ value is a list.
To change this
default behavior, add a _directive_. Recognized
directives include _replace_ (the default), _merge_
(avoid replacing a list), _delete_ and a few more
(see [these notes][strategic-merge]).
directives in YAML patches are _replace_ (the default)
and _delete_ (see [these notes][strategic-merge]).
Note that for custom resources, SMPs are treated as
[json merge patches][JSONMergePatch].