You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The path expression of a mergepatch operation determines the "original" JSON which is to be patched by the strategic merge.
The value of the patch is considered to be the "patch" JSON object passed to the strategic merge processing.
All the normal rules of select apply here - if select is present and it yields multiple results, then multiple merge operations will be performed, each time evaluating path and value in the context of the next selected item.
The above patch will find container named my-container and it will inject environment variable ENV2 into it, without disturbing the remaining environment variables of the container.
Add
merge
op
to thepatch
section of a ModRule.This operation should trigger a Kubernetes strategic merge patch as implemented here: https://github.com/kubernetes/apimachinery/blob/master/pkg/util/strategicpatch/patch.go#L856.
The
path
expression of amerge
patch
operation determines the "original" JSON which is to be patched by the strategic merge.The
value
of thepatch
is considered to be the "patch" JSON object passed to the strategic merge processing.All the normal rules of
select
apply here - ifselect
is present and it yields multiple results, then multiple merge operations will be performed, each time evaluatingpath
andvalue
in the context of the next selected item.Example:
The above patch will find container named
my-container
and it will inject environment variableENV2
into it, without disturbing the remaining environment variables of the container.This feature will solve #77 .
The text was updated successfully, but these errors were encountered: