Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kyverno policies cannot be published from URL with subgroup #4157

Open
manfuin opened this issue Nov 20, 2024 · 1 comment
Open

Kyverno policies cannot be published from URL with subgroup #4157

manfuin opened this issue Nov 20, 2024 · 1 comment

Comments

@manfuin
Copy link

manfuin commented Nov 20, 2024

Is your feature request related to a problem? Please describe.

For Kyverno Policies the system is currently use the "URL" for both: repository URL and path.

It is stated in documentation it must be:

https://github.com/user/repo[/path/to/packages]

However, this all-in-one URL approach is limiting and does not have a room for subgroups.
If repo is under https://github.com/user/subgroup[/subgroup..]/repo it is not possible to add it currently.

Describe the solution you'd like

Instead of getting the path from URL, specifying it as a separate field (like the branch is separate field already) will allow to use URL with subgroups.

Describe alternatives you've considered

It is also possible to allow to specify "git hosting platform specific parts" instead.

Additional context

I am trying to add this package in particular: https://gitlab.com/MaxIV/kubernetes/mortalgpu/-/tree/main/assets/kyverno
as repo ID: a13afacd-33a8-4af8-8e19-b40a8799117b

@tegioz
Copy link
Collaborator

tegioz commented Nov 20, 2024

Thanks @manfuin, we'll look into it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants