kubewarden / github-actions

GitHub actions used by the Kubewarden project
https://kubewarden.io
Apache License 2.0
4 stars 7 forks source link

Feature Request: Add "org.opencontainers.image.*" labels to container images #128

Open mueller-ma opened 1 month ago

mueller-ma commented 1 month ago

Is your feature request related to a problem?

I use a git repository to manage the policies that I want to apply to a Kubernetes cluster, including the name of the policy and its version. I use Renovate (https://docs.renovatebot.com/) to keep this version up to date as it opens PRs for every new version.

Compared to other PRs for container images, the ones for Kubewarden policies lack of information that would make a review easier. Here are two screenshots (from GitLab, so the term MR is used instead of PR):

grafik

grafik

The PR for traefik is easier to review, because it contains a changelog and "traefik" (inside the table) is linked to https://github.com/traefik/traefik.

Solution you'd like

Renovate (and other tools) is using the container image labels org.opencontainers.image.* to know where the repo and changelog for an image is:

As you have the GitHub actions centralized in this repo, it should be possible to add the labels for all policies in one step.

Alternatives you've considered

No response

Anything else?

PS: Where do I find the changelog of a policy, e.g. https://github.com/kubewarden/container-resources-policy/tree/main ?

viccuad commented 3 weeks ago

Hi, thanks for opening this issue! Indeed, this would be a nice feature for both Kubewarden container images and policy Wasm modules.

PS: Where do I find the changelog of a policy?

Right now, besides some exceptions like kubewarden/cel-policy, policies don't have an associated changelog. Since policies are secure, small and self-contained, they rarely have worthwhile updates with new or revised functionality that constitute a minor or major version bump. Nevertheless this would be a good addition.


Acceptance criteria

For all policies:

For all policies and container images (controller, policy-server, audit-scanner)