Skip to content

Commit 5ecff1b

Browse files
committed
Add artifacthub metadata files
Add the metadata files required to publish a policy on Artifact Hub. Remove the old Package hub file. Signed-off-by: Flavio Castelli <fcastelli@suse.com>
1 parent 8f7642a commit 5ecff1b

3 files changed

Lines changed: 37 additions & 17 deletions

File tree

artifacthub-pkg.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
version: 0.0.1
3+
name: policy-name
4+
displayName: Policy Name
5+
createdAt: '2022-07-19T16:39:10+02:00'
6+
description: DESCRIPTION OF YOUR POLICY
7+
license: Apache-2.0
8+
homeURL: POLICY HOMEPAGE URL
9+
containersImages:
10+
- name: policy
11+
image: "<registry>/<policy-name>:0.0.1"
12+
install: |
13+
The policy can be obtained using [`kwctl`](https://github.com/kubewarden/kwctl/):
14+
15+
```console
16+
kwctl pull <registry>/<policy-name>:0.0.1
17+
```
18+
keywords:
19+
- this is freeform
20+
links:
21+
- name: policy
22+
url: https://github.com/yourorg/policy-name/releases/download/0.0.1/policy.wasm
23+
- name: source
24+
url: POLICY HOMEPAGE URL
25+
provider:
26+
name: kubewarden
27+
recommendations:
28+
- url: https://artifacthub.io/packages/helm/kubewarden/kubewarden-controller
29+
annotations:
30+
kubewarden/resources: Pod # comma separated list
31+
kubewarden/mutation: false
32+
kubewarden/contextAware: false

artifacthub-repo.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
repositoryID: <THE REPOSITORY ID INSIDE OF ARTIFACTHUB> # obtained after publishing the policy for the 1st time
3+
owners:
4+
- name: YOUR NAME
5+
email: <YOUR EMAIL>

hub.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)