From f899739350f4245e5faa19a60a936ddf0a1fd49b Mon Sep 17 00:00:00 2001 From: hbh7 Date: Tue, 5 Nov 2024 17:48:28 -0500 Subject: [PATCH] Updated subpackage names to match the most recent format (#33199) Updated the subpackage names to use the format `${{package.name}}-subpackagename`. Fixes: https://github.com/chainguard-dev/internal-dev/issues/5147 #### For new version streams - [x] The upstream project actually supports multiple concurrent versions. - [x] Any subpackages include the version string in their package name (e.g. `name: ${{package.name}}-compat`) - [x] The package (and subpackages) `provides:` logical unversioned forms of the package (e.g. `nodejs`, `nodejs-lts`) - [ ] If non-streamed package names no longer built, open PR to withdraw them (see [WITHDRAWING PACKAGES](https://github.com/wolfi-dev/os/blob/main/WITHDRAWING_PACKAGES.md)) --------- Co-authored-by: Jason Hall --- kyverno-1.12.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/kyverno-1.12.yaml b/kyverno-1.12.yaml index 264b0995efc..37d628201a1 100644 --- a/kyverno-1.12.yaml +++ b/kyverno-1.12.yaml @@ -1,7 +1,7 @@ package: name: kyverno-1.12 version: 1.12.6 - epoch: 0 + epoch: 1 description: Kubernetes Native Policy Management copyright: - license: Apache-2.0 @@ -11,6 +11,12 @@ package: provides: - kyverno=${{package.full-version}} +var-transforms: + - from: ${{package.name}} + match: '.*-(\d+\.\d+).*' + replace: '$1' + to: major-minor-version + environment: contents: packages: @@ -45,7 +51,7 @@ pipeline: - uses: strip subpackages: - - name: kyverno-init-container-1.12 + - name: kyverno-init-container-${{vars.major-minor-version}} pipeline: - runs: | mkdir -p ${{targets.subpkgdir}}/usr/bin @@ -58,7 +64,7 @@ subpackages: - runs: | kyvernopre --help - - name: kyverno-reports-controller-1.12 + - name: kyverno-reports-controller-${{vars.major-minor-version}} pipeline: - runs: | mkdir -p ${{targets.subpkgdir}}/usr/bin @@ -71,7 +77,7 @@ subpackages: - runs: | reports-controller --help - - name: kyverno-background-controller-1.12 + - name: kyverno-background-controller-${{vars.major-minor-version}} pipeline: - runs: | mkdir -p ${{targets.subpkgdir}}/usr/bin @@ -84,7 +90,7 @@ subpackages: - runs: | background-controller --help - - name: kyverno-cleanup-controller-1.12 + - name: kyverno-cleanup-controller-${{vars.major-minor-version}} pipeline: - runs: | mkdir -p ${{targets.subpkgdir}}/usr/bin @@ -97,7 +103,7 @@ subpackages: - runs: | cleanup-controller --help - - name: kyverno-cli-1.12 + - name: kyverno-cli-${{vars.major-minor-version}} pipeline: - runs: | mkdir -p ${{targets.subpkgdir}}/usr/bin