-
Notifications
You must be signed in to change notification settings - Fork 15
/
artifacthub-pkg.yml
53 lines (53 loc) · 1.51 KB
/
artifacthub-pkg.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Kubewarden Artifacthub Package config
#
# Use this config to submit the policy to https://artifacthub.io.
#
# This config can be saved to its default location with:
# kwctl scaffold artifacthub > artifacthub-pkg.yml
version: 0.0.1-unreleased
name: policy-name
displayName: Policy Name
createdAt: 2023-10-16T08:39:33.352432617Z
description: Short description
license: Apache-2.0
homeURL: https://github.com/yourorg/policy-name
containersImages:
- name: policy
image: ghcr.io/yourorg/policies/policy-name:v0.0.1-unreleased
keywords:
- pod
- cool policy
- kubewarden
links:
- name: policy
url: https://github.com/yourorg/policy-name/releases/download/v0.0.1-unreleased/policy.wasm
- name: source
url: https://github.com/yourorg/policy-name
install: |
The policy can be obtained using [`kwctl`](https://github.com/kubewarden/kwctl):
```console
kwctl pull ghcr.io/yourorg/policies/policy-name:v0.0.1-unreleased
```
Then, generate the policy manifest and tune it to your liking. For example:
```console
kwctl scaffold manifest -t ClusterAdmissionPolicy registry://ghcr.io/yourorg/policies/policy-name:v0.0.1-unreleased
```
maintainers:
- name: Author name
email: [email protected]
provider:
name: kubewarden
recommendations:
- url: https://artifacthub.io/packages/helm/kubewarden/kubewarden-controller
annotations:
kubewarden/mutation: 'false'
kubewarden/resources: Pod
kubewarden/rules: |
- apiGroups:
- ''
apiVersions:
- v1
resources:
- pods
operations:
- CREATE