Skip to content

Commit

Permalink
Updated subpackage names to match the most recent format (#33199)
Browse files Browse the repository at this point in the history
<!---
Provide a short summary in the Title above. Examples of good PR titles:
* "ruby-3.1: new package"
* "haproxy: fix CVE-2014-123456"
-->

<!--
Please include references to any related issues or delete this section
otherwise.
 -->

Updated the subpackage names to use the format
`${{package.name}}-subpackagename`.

Fixes: chainguard-dev/internal-dev#5147

#### For new version streams
<!-- remove if unrelated -->
- [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 <[email protected]>
  • Loading branch information
hbh7 and imjasonh authored Nov 5, 2024
1 parent 23d7596 commit f899739
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions kyverno-1.12.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f899739

Please sign in to comment.