k8wiz
Kyverno
Medium
Validation

Which of the following is a valid pattern matching syntax in Kyverno?

Select your answer:

Show answer and explanation

Answer: metadata.name: regex('^test-.*$')

Explanation

Kyverno supports pattern matching using the 'regex' function. The syntax 'metadata.name: regex('^test-.*$')' is valid and matches any resource name that starts with 'test-'.

Read more about Kyverno