From 682f65e046dbd366563203c56b8155fbcab75380 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Wed, 6 May 2026 22:24:30 +1000 Subject: [PATCH] chore: setup proper resource requirements for puppet ci jobs (#463) currently, all woodpecker jobs jam onto one host, and have no resource limits resulting in one kubernetes host suddenly maxing its cpu - ensure we allocate resources for each woodpecker job Reviewed-on: https://git.unkin.net/unkin/puppet-prod/pulls/463 --- .woodpecker/bolt-validate.yaml | 10 ++++++++++ .woodpecker/epp-validate.yaml | 10 ++++++++++ .woodpecker/erb-validate.yaml | 10 ++++++++++ .woodpecker/puppet-lint.yaml | 10 ++++++++++ .woodpecker/puppet-validate.yaml | 10 ++++++++++ .woodpecker/ruby-check.yaml | 10 ++++++++++ .woodpecker/ruby-validate.yaml | 10 ++++++++++ .woodpecker/yamllint.yaml | 10 ++++++++++ 8 files changed, 80 insertions(+) diff --git a/.woodpecker/bolt-validate.yaml b/.woodpecker/bolt-validate.yaml index f1ae298..b04b044 100644 --- a/.woodpecker/bolt-validate.yaml +++ b/.woodpecker/bolt-validate.yaml @@ -6,3 +6,13 @@ steps: image: git.unkin.net/unkin/almalinux9-puppet-pr-validator:20260317 commands: - uvx pre-commit run --all-files --config ci/bolt-validate.yaml + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 1 diff --git a/.woodpecker/epp-validate.yaml b/.woodpecker/epp-validate.yaml index cae6250..020a09d 100644 --- a/.woodpecker/epp-validate.yaml +++ b/.woodpecker/epp-validate.yaml @@ -6,3 +6,13 @@ steps: image: git.unkin.net/unkin/almalinux9-puppet-pr-validator:20260317 commands: - uvx pre-commit run --all-files --config ci/epp-validate.yaml + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 1 diff --git a/.woodpecker/erb-validate.yaml b/.woodpecker/erb-validate.yaml index 151166d..a8fdd8a 100644 --- a/.woodpecker/erb-validate.yaml +++ b/.woodpecker/erb-validate.yaml @@ -6,3 +6,13 @@ steps: image: git.unkin.net/unkin/almalinux9-puppet-pr-validator:20260317 commands: - uvx pre-commit run --all-files --config ci/erb-validate.yaml + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 1 diff --git a/.woodpecker/puppet-lint.yaml b/.woodpecker/puppet-lint.yaml index 79529d5..b44487c 100644 --- a/.woodpecker/puppet-lint.yaml +++ b/.woodpecker/puppet-lint.yaml @@ -6,3 +6,13 @@ steps: image: git.unkin.net/unkin/almalinux9-puppet-pr-validator:20260317 commands: - uvx pre-commit run --all-files --config ci/puppet-lint.yaml + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 1 diff --git a/.woodpecker/puppet-validate.yaml b/.woodpecker/puppet-validate.yaml index 804217b..cf73288 100644 --- a/.woodpecker/puppet-validate.yaml +++ b/.woodpecker/puppet-validate.yaml @@ -6,3 +6,13 @@ steps: image: git.unkin.net/unkin/almalinux9-puppet-pr-validator:20260317 commands: - uvx pre-commit run --all-files --config ci/puppet-validate.yaml + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 1 diff --git a/.woodpecker/ruby-check.yaml b/.woodpecker/ruby-check.yaml index 6bb784b..b3a3593 100644 --- a/.woodpecker/ruby-check.yaml +++ b/.woodpecker/ruby-check.yaml @@ -6,3 +6,13 @@ steps: image: git.unkin.net/unkin/almalinux9-puppet-pr-validator:20260317 commands: - uvx pre-commit run --all-files --config ci/ruby-check.yaml + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 1 diff --git a/.woodpecker/ruby-validate.yaml b/.woodpecker/ruby-validate.yaml index 323d20f..e0b2dd4 100644 --- a/.woodpecker/ruby-validate.yaml +++ b/.woodpecker/ruby-validate.yaml @@ -6,3 +6,13 @@ steps: image: git.unkin.net/unkin/almalinux9-puppet-pr-validator:20260317 commands: - uvx pre-commit run --all-files --config ci/ruby-validate.yaml + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 1 diff --git a/.woodpecker/yamllint.yaml b/.woodpecker/yamllint.yaml index 8ecd4a3..4c645be 100644 --- a/.woodpecker/yamllint.yaml +++ b/.woodpecker/yamllint.yaml @@ -6,3 +6,13 @@ steps: image: git.unkin.net/unkin/almalinux9-base:20260317 commands: - uvx pre-commit run --all-files --config ci/yamllint.yaml + backend_options: + kubernetes: + serviceAccountName: default + resources: + requests: + memory: 512Mi + cpu: 1 + limits: + memory: 2Gi + cpu: 1