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
Copy file name to clipboardexpand all lines: content/en/docs/writing-policies/verify-images/_index.md
+5-12
Original file line number
Diff line number
Diff line change
@@ -53,14 +53,14 @@ For additional details please reference a section below for the solution used to
53
53
### Variables in `imageReferences`
54
54
The `imageReferences` field does **not** support variable interpolation (e.g., `{{ }}` syntax). Only **static strings** or predefined lists should be used.
55
55
56
-
#### ** Incorrect Usage (Using Variables – Not Allowed)**
56
+
#### Incorrect Usage (Using Variables – Not Allowed)
@@ -104,18 +104,11 @@ The `imageReferences` field does **not** support variable interpolation (e.g., `
104
104
**Why is this correct?**
105
105
- Only predefined, static resource kinds (`Deployment`, `StatefulSet`) are used.
106
106
107
-
---
107
+
108
108
109
109
### **Why Are Variables Not Allowed in These Fields?**
110
110
Kyverno requires these fields to be **static** to ensure policy validation and enforcement remain deterministic and efficient. Allowing variables in these fields could introduce unexpected behavior, making policy evaluation unreliable.
0 commit comments