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
Is your feature request related to a problem? Please describe.
Very often users are attempting to use the Kyverno CLI to test policies which contain variables but none have been passed in either with --set or in a file. While this is documented, it could be surfaced up in the CLI.
Describe the solution you'd like
Print a warning in the CLI output if a policy is being tested which contains variables that have not been passed in.
Describe alternatives you've considered
Leave everything as is and defer users to the online documentation.
The text was updated successfully, but these errors were encountered:
An error is printed if the command includes the -f flag but the values file has a mismatch of the resource name specified in the deploy.yaml file, for example:
$ k kyverno apply cpol.yaml -r deploy.yaml -f values.yaml
applying 1 policy to 1 resource...
Error: policy any-all-preconditions have variables. pass the values for the variables using set/values_file flag
but not if it just passes the policy and a resource:
Is your feature request related to a problem? Please describe.
Very often users are attempting to use the Kyverno CLI to test policies which contain variables but none have been passed in either with
--set
or in a file. While this is documented, it could be surfaced up in the CLI.Describe the solution you'd like
Print a warning in the CLI output if a policy is being tested which contains variables that have not been passed in.
Describe alternatives you've considered
Leave everything as is and defer users to the online documentation.
The text was updated successfully, but these errors were encountered: