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