Best way to embed policies with JMESPath into Helm templates #1030
Answered
by
chipzoller
cybra-northco
asked this question in
Q&A
-
Looking at the https://github.com/kyverno/kyverno/blob/main/charts/kyverno-policies/templates/restricted/disallow-capabilities-strict.yaml line 81:
Wouldn't it be better to write it like this:
|
Beta Was this translation helpful? Give feedback.
Answered by
chipzoller
May 24, 2024
Replies: 1 comment 2 replies
-
In JMESPath, the notation needs to be:
The backticks are needed to denote an object. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Functionally in this case it probably doesn't matter but in other cases it does so we're trying to be technically correct according to the specifications.