-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is required to release the policy Signed-off-by: Flavio Castelli <[email protected]>
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |