# 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.1.0 name: demo displayName: Policy Name createdAt: 2024-08-29T08:57:25.962338353Z description: Short description license: Apache-2.0 homeURL: https://github.com/yourorg/demo containersImages: - name: policy image: ghcr.io/kubewarden/policies/demo:v0.1.0 keywords: - pod - cool policy - kubewarden links: - name: policy url: https://github.com/yourorg/demo/releases/download/v0.1.0/policy.wasm - name: source url: https://github.com/yourorg/demo install: | The policy can be obtained using [`kwctl`](https://github.com/kubewarden/kwctl): ```console kwctl pull ghcr.io/kubewarden/policies/demo: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/kubewarden/policies/demo:v0.1.0 ``` maintainers: - name: Miguel Campos email: miguel.campos@roche.com provider: name: kubewarden recommendations: - url: https://artifacthub.io/packages/helm/kubewarden/kubewarden-controller annotations: kubewarden/mutation: 'false' kubewarden/questions-ui: |- questions: - default: [] description: >- This policy demo hello world mutant tooltip: >- mutant hello world group: Settings label: Allowed flex volumes hide_input: true type: sequence[ variable: allowedFlexVolumes sequence_questions: - default: '' group: Settings label: Driver type: string variable: driver kubewarden/resources: Pod kubewarden/rules: | - apiGroups: - '' apiVersions: - v1 resources: - pods operations: - CREATE