OS Manuals

/usr/bin/policy-tester

CLI for testing ClusterImagePolicy resources

From policy-controller-tester 0.15.1-r10 (os), captured 2026-11-05 by running policy-tester --help (exit 0). permalink

Also provided by 2 other package versions
Usage of /usr/bin/policy-tester:
  -enable-oci11
    	enable experimental OCI 1.1 referrers API for attestation discovery
  -image string
    	image to compare against policy
  -log-level string
    	configure the tool's log level (debug, info, warn, error) (default "info")
  -policy string
    	path to ClusterImagePolicy or URL to fetch from (http/https)
  -resource string
    	path to a kubernetes resource to use with includeSpec, includeObjectMeta
  -trustroot string
    	path to a kubernetes TrustRoot resource to use with the ClusterImagePolicy
  -version
    	return the policy-controller tester version
Options (7)
OptionDescriptionSource
-enable-oci11enable experimental OCI 1.1 referrers API for attestation discoveryhelp
-image stringimage to compare against policyhelp
-log-level stringconfigure the tool's log level (debug, info, warn, error) (default "info")help
-policy stringpath to ClusterImagePolicy or URL to fetch from (http/https)help
-resource stringpath to a kubernetes resource to use with includeSpec, includeObjectMetahelp
-trustroot stringpath to a kubernetes TrustRoot resource to use with the ClusterImagePolicyhelp
-versionreturn the policy-controller tester versionhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.