Skip to content

Commit

Permalink
fix metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
  • Loading branch information
flavio committed Nov 2, 2023
1 parent 4e087aa commit 6f9b00c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
38 changes: 20 additions & 18 deletions artifacthub-pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,53 @@
#
# 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:38:02.310413445Z
description: Short description
version: 0.1.0
name: ingress-unique-host
displayName: Unique Ingress host
createdAt: 2023-11-02T09:17:06.93600344Z
description: Requires all Ingress rule hosts to be unique
license: Apache-2.0
homeURL: https://github.com/yourorg/policy-name
homeURL: https://github.com/kubewarden/unique-ingress-policy
containersImages:
- name: policy
image: ghcr.io/yourorg/policies/policy-name:v0.0.1-unreleased
image: ghcr.io/kubewarden/policies/unique-ingress-policy:v0.1.0
keywords:
- pod
- cool policy
- ingress
- kubewarden
links:
- name: policy
url: https://github.com/yourorg/policy-name/releases/download/v0.0.1-unreleased/policy.wasm
url: https://github.com/kubewarden/unique-ingress-policy/releases/download/v0.1.0/policy.wasm
- name: source
url: https://github.com/yourorg/policy-name
url: https://github.com/kubewarden/unique-ingress-policy
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
kwctl pull ghcr.io/kubewarden/policies/unique-ingress-policy:v0.1.0
```
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
kwctl scaffold manifest -t ClusterAdmissionPolicy registry://ghcr.io/kubewarden/policies/unique-ingress-policy:v0.1.0
```
maintainers:
- name: Author name
email: author-email@example.com
- name: Kubewarden developers
email: cncf-kubewarden-maintainers@lists.cncf.io
provider:
name: kubewarden
recommendations:
- url: https://artifacthub.io/packages/helm/kubewarden/kubewarden-controller
annotations:
kubewarden/contextAwareResources: |
- apiVersion: networking.k8s.io/v1
kind: Ingress
kubewarden/mutation: 'false'
kubewarden/resources: Pod
kubewarden/resources: Ingress
kubewarden/rules: |
- apiGroups:
- ''
- networking.k8s.io
apiVersions:
- v1
resources:
- services
- ingresses
operations:
- CREATE
- UPDATE
2 changes: 1 addition & 1 deletion metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ annotations:
# kubewarden specific:
io.kubewarden.policy.title: ingress-unique-host
io.kubewarden.policy.description: Requires all Ingress rule hosts to be unique
io.kubewarden.policy.author: "Gatekeeper authors"
io.kubewarden.policy.author: Kubewarden developers <cncf-kubewarden-maintainers@lists.cncf.io>
io.kubewarden.policy.url: https://github.com/kubewarden/unique-ingress-policy
io.kubewarden.policy.source: https://github.com/kubewarden/unique-ingress-policy
io.kubewarden.policy.license: Apache-2.0
Expand Down

0 comments on commit 6f9b00c

Please sign in to comment.