Skip to content

Commit 3d1db6d

Browse files
committed
docs: clarify that variables are not allowed in imageReferences field
Signed-off-by: kushal9897 <kushalag2580@gmail.com>
1 parent 2502b20 commit 3d1db6d

File tree

1 file changed

+11
-0
lines changed
  • content/en/docs/writing-policies/verify-images

1 file changed

+11
-0
lines changed

content/en/docs/writing-policies/verify-images/_index.md

+11
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ The `imageRegistryCredentials.secrets` specifies a list of secrets that are prov
4848

4949
For additional details please reference a section below for the solution used to sign the images and attestations:
5050

51+
## Limitations
52+
53+
### Variables in `imageReferences`
54+
The `imageReferences` field does **not** support variable interpolation (e.g., `{{ }}` syntax). Only **static strings** or predefined lists should be used.
55+
56+
#### **Incorrect Usage**
57+
```yaml
58+
verifyImages:
59+
- imageReferences: ["{{ parse_yaml(allowedregistryprefixes.data.allowedregistryprefixes) }}"]
60+
61+
5162
### Cache
5263

5364
Image verification requires multiple network calls and can be time consuming. Kyverno has a TTL based cache for image verification which caches successful outcomes of image verification. When cache is enabled, an image once verified by a policy will be considered to be verified until TTL duration expires or there is a change in policy.

0 commit comments

Comments
 (0)