This repository contains the catalog of Kubewarden policies to be consumed by the Rancher UI. The catalog is published to GitHub Pages at https://kubewarden.github.io/policy-catalog/.
This repository includes a GitHub Action workflow for automatically updating policy references when new versions are released.
The workflow can be triggered in two ways:
-
Manually via workflow dispatch - requires the following inputs:
owner: Repository ownerrepo: Repository nametag: Tag to releasepolicy-working-dir: Working directory of the policy. Useful for repos with policies in folders (optional)chart-dir: Override the chart directory name (optional, defaults to repo name)
-
Automatically via repository dispatch - requires this payload:
The workflow performs these steps:
- Fetches the policy repository at the specified tag
- Creates a directory structure under
charts/<repo-name>/ - Copies required files (README.md, LICENSE)
- Copies optional files (questions-ui.yml → questions.yaml)
- Generates Chart.yaml using the pkg2chart tool
- Creates a PR with the changes
Each policy repository must contain the following:
- README.md
- LICENSE
- artifacthub-pkg.yml and artifacthub-repo.yml (for Chart.yaml generation)
Optional:
- questions-ui.yml (will be renamed to questions.yaml)
{ "event_type": "release-policy", "client_payload": { "owner": "org-name", "repo": "repo-name", "tag": "v1.0.0", "policy_working_dir": "path/to/policy", // Optional, defaults to root directory "chart_dir": "MyPolicy", // Optional, defaults to repo name }, }