From 32ee4b1ab3ae82a22585b079ac9e7baa7fa75437 Mon Sep 17 00:00:00 2001 From: Max Allan Date: Thu, 18 Apr 2024 14:27:02 +0100 Subject: [PATCH 1/2] New v3.15.1 of Gatekeeper. NB, the "gator" sub pkg doesnt appear in "apk search" results. The new version does. Signed-off-by: Max Allan --- gatekeeper-3.15.yaml | 68 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 gatekeeper-3.15.yaml diff --git a/gatekeeper-3.15.yaml b/gatekeeper-3.15.yaml new file mode 100644 index 00000000000..a83c050a994 --- /dev/null +++ b/gatekeeper-3.15.yaml @@ -0,0 +1,68 @@ +package: + name: gatekeeper-3.15 + version: 3.15.1 + epoch: 0 + description: Gatekeeper - Policy Controller for Kubernetes + copyright: + - license: Apache-2.0 + dependencies: + provides: + - gatekeeper=${{package.full-version}} + +environment: + contents: + packages: + - build-base + - busybox + - ca-certificates-bundle + - go + - wolfi-baselayout + +pipeline: + # We can't use go/install because this requires specific ldflags to set the version + - uses: git-checkout + with: + repository: https://github.com/open-policy-agent/gatekeeper + tag: v${{package.version}} + expected-commit: 3350319f76d3e2d78df0b972c63258cba7c7915f + + - uses: go/bump + with: + deps: google.golang.org/protobuf@v1.33.0 github.com/docker/docker@v24.0.9 + + - runs: | + FRAMEWORKS_VERSION=$(go list -f '{{ .Version }}' -m github.com/open-policy-agent/frameworks/constraint) + OPA_VERSION=$(go list -f '{{ .Version }}' -m github.com/open-policy-agent/opa) + CGO_ENABLED=0 GO111MODULE=on go build -mod vendor -a -ldflags "-w -X github.com/open-policy-agent/gatekeeper/pkg/version.Version=v${{package.version}} -X main.frameworksVersion=${FRAMEWORKS_VERSION} -X main.opaVersion=${OPA_VERSION}" -o manager + make gator + mkdir -p ${{targets.destdir}}/usr/bin + install -Dm755 ./manager ${{targets.destdir}}/usr/bin/manager + + - uses: strip + +subpackages: + - name: ${{package.name}}-compat + pipeline: + - runs: | + mkdir -p ${{targets.subpkgdir}} + ln -sf /usr/bin/manager ${{targets.subpkgdir}}/manager + dependencies: + provides: + - gatekeeper-compat=${{package.full-version}} + + - name: ${{package.name}}-gator + pipeline: + - runs: | + mkdir -p ${{targets.subpkgdir}}/usr/bin + mv bin/gator ${{targets.subpkgdir}}/usr/bin/gator + dependencies: + provides: + - gatekeeper-gator=${{package.full-version}} + +update: + enabled: true + github: + identifier: open-policy-agent/gatekeeper + strip-prefix: v + use-tag: true + tag-filter: v3.15. From 67e9d2d62847f55e0817690c360c88baadf48b4c Mon Sep 17 00:00:00 2001 From: Max Allan Date: Fri, 19 Apr 2024 16:48:12 +0100 Subject: [PATCH 2/2] Rename file to remove the version specifier. Signed-off-by: Max Allan --- gatekeeper-3.15.yaml => gatekeeper.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) rename gatekeeper-3.15.yaml => gatekeeper.yaml (97%) diff --git a/gatekeeper-3.15.yaml b/gatekeeper.yaml similarity index 97% rename from gatekeeper-3.15.yaml rename to gatekeeper.yaml index a83c050a994..28d23178ad7 100644 --- a/gatekeeper-3.15.yaml +++ b/gatekeeper.yaml @@ -1,5 +1,5 @@ package: - name: gatekeeper-3.15 + name: gatekeeper version: 3.15.1 epoch: 0 description: Gatekeeper - Policy Controller for Kubernetes @@ -65,4 +65,3 @@ update: identifier: open-policy-agent/gatekeeper strip-prefix: v use-tag: true - tag-filter: v3.15.