Skip to content

Commit

Permalink
Add artifacthub-pkg.yml file
Browse files Browse the repository at this point in the history
This is required to release the policy

Signed-off-by: Flavio Castelli <[email protected]>
  • Loading branch information
flavio committed Sep 17, 2024
1 parent 564b9f7 commit fdf4ebc
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions artifacthub-pkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit fdf4ebc

Please sign in to comment.