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
Currently the patch value of a ModRule is evaluated as a Golang template in the following intrinsic context: * .Namespace - string representing the namespace of the target object *.Target -object representing the target resource being patched
Sometimes this is not enough as the patching operation of one object may need to refer to parts of other related manifests.
For example, the patching of a pod may need to refer to annotations on the pod's deployment manifest.
Introduce an includes section where manifests of select set of objects can be included in the intrinsic part of the Golang template of the patch value.
The objects in the includes section can be identified based on their own match sections. These match sections, however, will require a resource designation (think pods, services, etc.), such that we perform targeted queries against the namespace when trying to identify potential objects to include in the Golang template context.
The text was updated successfully, but these errors were encountered:
Currently the patch value of a
ModRule
is evaluated as a Golang template in the following intrinsic context:* .Namespace
- string representing the namespace of the target object*.Target
-object representing the target resource being patchedSometimes this is not enough as the patching operation of one object may need to refer to parts of other related manifests.
For example, the patching of a pod may need to refer to annotations on the pod's deployment manifest.
Introduce an
includes
section where manifests of select set of objects can be included in the intrinsic part of the Golang template of the patch value.The objects in the
includes
section can be identified based on their ownmatch
sections. These match sections, however, will require aresource
designation (thinkpods
,services
, etc.), such that we perform targeted queries against the namespace when trying to identify potential objects to include in the Golang template context.The text was updated successfully, but these errors were encountered: