Kyverno CLI test
command on Git repos default to main branch
#2290
Labels
Milestone
test
command on Git repos default to main branch
#2290
Is your feature request related to a problem? Please describe.
The Kyverno CLI, when using the
test
command with an upstream git repository, requires the format of that repo contain the branch name. This isn't aligned with about all software today which can default to pick up themain
ormaster
branch.Describe the solution you'd like
When using the
test
command of the CLI to test against a web-server-backed Git repo, default to using themain
branch (ormaster
ifmain
is not present). Users should be able to point the CLI like so:kyverno test https://github.com/kyverno/policies
Additionally, if both
master
andmain
are found, prefermain
and print a message back to the console stating this.The text was updated successfully, but these errors were encountered: