Merge pull request #1383 from richardmarshall/smp_patch_directive

Handle ordering patch with SMP delete directives
This commit is contained in:
Kubernetes Prow Robot
2019-08-23 11:15:18 -07:00
committed by GitHub
4 changed files with 88 additions and 125 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].