From 4ad870e990b6a4be1c8d56f2878c5752d87f3a45 Mon Sep 17 00:00:00 2001 From: "octo-sts[bot]" <157150467+octo-sts@users.noreply.github.com> Date: Sat, 20 Apr 2024 14:29:34 +0000 Subject: [PATCH 1/2] gatekeeper-3.15:version stream --- 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..e5c8c1afb04 --- /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: a70af337ff734df74a099cd3a4d8dc2fee723395 + + - uses: go/bump + with: + deps: google.golang.org/grpc@v1.58.3 golang.org/x/crypto@v0.17.0 google.golang.org/protobuf@v1.33.0 github.com/containerd/containerd@v1.7.11 github.com/docker/docker@v24.0.9 golang.org/x/net@v0.23.0 + + - 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 b5d677be662ffc683f9df48bcfdae210898c50a3 Mon Sep 17 00:00:00 2001 From: James Rawlings Date: Sat, 20 Apr 2024 15:40:40 +0100 Subject: [PATCH 2/2] remove go bumps already applied upstream Signed-off-by: James Rawlings --- gatekeeper-3.15.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatekeeper-3.15.yaml b/gatekeeper-3.15.yaml index e5c8c1afb04..a881b3a2c8c 100644 --- a/gatekeeper-3.15.yaml +++ b/gatekeeper-3.15.yaml @@ -28,7 +28,7 @@ pipeline: - uses: go/bump with: - deps: google.golang.org/grpc@v1.58.3 golang.org/x/crypto@v0.17.0 google.golang.org/protobuf@v1.33.0 github.com/containerd/containerd@v1.7.11 github.com/docker/docker@v24.0.9 golang.org/x/net@v0.23.0 + deps: google.golang.org/protobuf@v1.33.0 github.com/docker/docker@v24.0.9 golang.org/x/net@v0.23.0 - runs: | FRAMEWORKS_VERSION=$(go list -f '{{ .Version }}' -m github.com/open-policy-agent/frameworks/constraint)