mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Merge pull request #749 from rndstr/document-smp-crd
Document SMP behavior for custom resources
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
[Declarative Application Management]: https://github.com/kubernetes/community/blob/master/contributors/design-proposals/architecture/declarative-application-management.md
|
[Declarative Application Management]: https://github.com/kubernetes/community/blob/master/contributors/design-proposals/architecture/declarative-application-management.md
|
||||||
[JSON]: https://www.json.org/
|
[JSON]: https://www.json.org/
|
||||||
[JSONPatch]: https://tools.ietf.org/html/rfc6902
|
[JSONPatch]: https://tools.ietf.org/html/rfc6902
|
||||||
|
[JSONMergePatch]: https://tools.ietf.org/html/rfc7386
|
||||||
[Resource]: #resource
|
[Resource]: #resource
|
||||||
[YAML]: http://www.yaml.org/start.html
|
[YAML]: http://www.yaml.org/start.html
|
||||||
[application]: #application
|
[application]: #application
|
||||||
@@ -298,6 +299,9 @@ directives include _replace_ (the default), _merge_
|
|||||||
(avoid replacing a list), _delete_ and a few more
|
(avoid replacing a list), _delete_ and a few more
|
||||||
(see [these notes][strategic-merge]).
|
(see [these notes][strategic-merge]).
|
||||||
|
|
||||||
|
Note that for custom resources, SMPs are treated as
|
||||||
|
[json merge patches][JSONMergePatch].
|
||||||
|
|
||||||
Fun fact - any resource file can be used as
|
Fun fact - any resource file can be used as
|
||||||
an SMP, overwriting matching fields in another
|
an SMP, overwriting matching fields in another
|
||||||
resource with the same group/version/kind/name,
|
resource with the same group/version/kind/name,
|
||||||
|
|||||||
Reference in New Issue
Block a user