From f82a9900a938239844a55de8a218bfaa417c6218 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Fri, 3 Jul 2026 15:05:00 +1000 Subject: [PATCH] Add kubernetes backend options to build and test steps Give the build/lint/test CI steps the same serviceAccount + resource requests/limits as the pre-commit and release steps, so every step on the k8s woodpecker backend is scheduled with bounded resources. --- .woodpecker/build.yml | 10 ++++++++++ .woodpecker/test.yml | 20 ++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 9c181f7..74123b5 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -6,3 +6,13 @@ steps: image: golang:1.25 commands: - make build + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 2 diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index bb94e07..8e81e45 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -6,8 +6,28 @@ steps: image: golang:1.25 commands: - make lint + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 2 - name: test image: golang:1.25 commands: - make test + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 2