Skip to content

Commit

Permalink
fix: missing questions data.
Browse files Browse the repository at this point in the history
The artifacthub-pkg.yml file is missing the questions.yml file content.
This fixes this issue adding a missing flag in the Makefile.

Signed-off-by: José Guilherme Vanz <[email protected]>
  • Loading branch information
jvanz committed Jun 1, 2023
1 parent 3a6886c commit f2d23d8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ artifacthub-pkg.yml: metadata.yml go.mod
make VERSION=$$(git describe --tags --abbrev=0 | cut -c2-) annotated-policy.wasm)
kwctl scaffold artifacthub \
--metadata-path metadata.yml --version $(VERSION) \
--questions-path questions-ui.yml \
--output artifacthub-pkg.yml

annotated-policy.wasm: policy.wasm metadata.yml artifacthub-pkg.yml
Expand Down
28 changes: 23 additions & 5 deletions artifacthub-pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@
#
# This config can be saved to its default location with:
# kwctl scaffold artifacthub > artifacthub-pkg.yml
version: 0.1.1
version: 0.1.2
name: namespace-label-propagator-policy
displayName: Namespace label propagator
createdAt: 2023-06-01T18:51:01.658854061Z
createdAt: 2023-06-01T19:15:17.442386716Z
description: Kubewarden policy designed to automatically propagate labels defined in a Kubernetes namespace to the associated resources within that namespace
license: Apache-2.0
homeURL: https://github.com/kubewarden/namespace-label-propagator-policy
containersImages:
- name: policy
image: ghcr.io/kubewarden/policies/namespace-label-propagator:v0.1.1
image: ghcr.io/kubewarden/policies/namespace-label-propagator:v0.1.2
keywords:
- policy
- kubewarden
- namespace
- label
links:
- name: policy
url: https://github.com/kubewarden/namespace-label-propagator-policy/releases/download/v0.1.1/policy.wasm
url: https://github.com/kubewarden/namespace-label-propagator-policy/releases/download/v0.1.2/policy.wasm
- name: source
url: https://github.com/kubewarden/namespace-label-propagator-policy
install: |
The policy can be obtained using [`kwctl`](https://github.com/kubewarden/kwctl):
```console
kwctl pull ghcr.io/kubewarden/policies/namespace-label-propagator:v0.1.1
kwctl pull ghcr.io/kubewarden/policies/namespace-label-propagator:v0.1.2
```
maintainers:
- name: Kubewarden developers
Expand All @@ -41,6 +41,24 @@ annotations:
- apiVersion: v1
kind: Namespace
kubewarden/mutation: 'true'
kubewarden/questions-ui: |
questions:
- default: null
description: >-
Kubewarden policy designed to automatically propagate labels defined in a Kubernetes namespace to the associated resources within that namespace
group: Settings
label: Description
required: false
hide_input: true
type: string
variable: description
- default: []
tooltip: A list of the Namespace labels that should be propagated to the resources
group: Settings
label: Propagated labels
required: true
type: array[
variable: propagatedLabels
kubewarden/resources: Pod, ReplicationController, Deployment, ReplicaSet, StatefulSet, DaemonSet, Job, CronJob
kubewarden/rules: |
- apiGroups:
Expand Down

0 comments on commit f2d23d8

Please sign in to comment.