Obtain tag string correctly
For reusable-test-policy- jobs:
check artifacthub-pkg.yml, but ignore the version field, as the tag is not yet created.
For reusable-release-policy- jobs:
check artifacthub-pkg.yml, and check the version field, as the tag is created.
Needing to manually do make --always-make artifacthub-pkg.yml VERSION=0.1.8 is not very discoverable for users. At least it is included in the error string though.
Description
Relates to https://github.com/kubewarden/kubewarden-controller/issues/389.
Obtain tag string correctly For reusable-test-policy- jobs: check artifacthub-pkg.yml, but ignore the version field, as the tag is not yet created. For reusable-release-policy- jobs: check artifacthub-pkg.yml, and check the version field, as the tag is created.
Test
touch metadata.yml && make artifacthub-pkg.yml VERSION=0.1.8
Additional Information
Tradeoff
Potential improvement
Needing to manually do
make --always-make artifacthub-pkg.yml VERSION=0.1.8
is not very discoverable for users. At least it is included in the error string though.