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
I've been working on writing a ClusterPolicy that includes a rule with a verifyImages section. I've been trying to source the imageReferences from a context value that contains an array of strings. My policy has failed to validate (without indication why) until I explicitly tried making the value of imageReferences into an array.
At that point, I finally was able to generate the following error
"policy contains invalid variables: rule \"verify-image-signature\" should not have variables in image reference section"
This was extremely frustrating to diagnose, only to run into that error. If variables are not allowed in certain portions of a policy, the documentation (both on the main site and the API documentation for ClusterPolicy and Policy) should indicate that.
Slack discussion
No response
The text was updated successfully, but these errors were encountered:
Description
I've been working on writing a
ClusterPolicy
that includes a rule with averifyImages
section. I've been trying to source theimageReferences
from a context value that contains an array of strings. My policy has failed to validate (without indication why) until I explicitly tried making the value ofimageReferences
into an array.At that point, I finally was able to generate the following error
Example rule:
This was extremely frustrating to diagnose, only to run into that error. If variables are not allowed in certain portions of a policy, the documentation (both on the main site and the API documentation for
ClusterPolicy
andPolicy
) should indicate that.Slack discussion
No response
The text was updated successfully, but these errors were encountered: