From b7d18538c6657e3d11e067d26db65707e489ae30 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 3 May 2026 16:40:15 +1000 Subject: [PATCH] chore: add resource requests/limits to workflows have seen some contention on woodpecker jobs, because they are not being scheduled correctly. we need to set correct limits/requests so that they can be accurately scheduled. - set limits/requests for all workflows --- .woodpecker/kubeconform.yaml | 10 ++++++++++ .woodpecker/pre-commit.yaml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/.woodpecker/kubeconform.yaml b/.woodpecker/kubeconform.yaml index 38648c4..6177e2f 100644 --- a/.woodpecker/kubeconform.yaml +++ b/.woodpecker/kubeconform.yaml @@ -6,3 +6,13 @@ steps: image: git.unkin.net/unkin/almalinux9-kubetest:20260319 commands: - make kubeconform + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 2 diff --git a/.woodpecker/pre-commit.yaml b/.woodpecker/pre-commit.yaml index 75d1fca..260e0a8 100644 --- a/.woodpecker/pre-commit.yaml +++ b/.woodpecker/pre-commit.yaml @@ -6,3 +6,13 @@ steps: image: git.unkin.net/unkin/almalinux9-base:20260308 commands: - uvx pre-commit run --all-files + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 256Mi + cpu: 250m + limits: + memory: 1Gi + cpu: 1