kyverno: [Bug] [CLI] `kyverno apply` not working for local files
Kyverno CLI Version
main branch
Description
kyverno apply
command is not working locally.
Steps to reproduce
$ kyverno apply path-to-policy.yaml --resource resource.yaml -f values.yaml
Error: failed to parse URL
Cause: invalid URL path deny-exec-by-pod-label.yaml - expected https://<any_git_source_domain>/:owner/:repository/:branch (without --git-branch flag) OR https://<any_git_source_domain>/:owner/:repository/:directory (with --git-branch flag)
Expected behavior
$ kyverno apply path-to-policy.yaml --resource resource.yaml -f values.yaml
Applying 1 policy rule to 1 resource...
policy deny-exec-by-pod-label -> resource default/PodExecOptions/execpod failed:
1. deny-exec-by-label: Exec'ing into Pods protected with the label `exec=false` is forbidden.
pass: 0, fail: 1, warn: 0, error: 0, skip: 0
Troubleshooting
- I have read and followed the troubleshooting guide.
- I have searched other issues in this repository and mine is not recorded.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (9 by maintainers)
Sure, no problem.