k8wiz
Kyverno
Medium
Policies

Which of the following is a valid JMESPath expression in a Kyverno policy?

Select your answer:

Show answer and explanation

Answer: request.object.metadata.name == 'nginx'

Explanation

Kyverno uses JMESPath expressions for conditions and pattern matching. 'request.object.metadata.name == 'nginx'' is a valid JMESPath expression that checks if the name of the resource is 'nginx'.

Read more about Kyverno