Kyverno
Hard
Policies
What is the purpose of the 'context' field in a Kyverno policy?
Select your answer:
Show answer and explanation
Answer: To define variables that can be used in the policy rules
Explanation
The 'context' field in a Kyverno policy is used to define variables that can be used in the policy rules. These variables can be populated from various sources like ConfigMaps, API calls, or other resources.
More hard Kyverno questions
- Which of the following is NOT a valid variable source in a Kyverno context?
- What is the purpose of the 'foreach' field in a Kyverno rule?
- Which of the following is NOT a component of the Kyverno architecture?
- What is the purpose of the 'kyverno.io/updateToken' annotation in a generated resource?
- Which of the following is NOT a valid source for context variables in Kyverno?
- What is the purpose of the 'kyverno.io/last-applied-policy' annotation?