From 6d7258eff4116920ac287f65a9a37bd642fa08e6 Mon Sep 17 00:00:00 2001 From: Mark Wolfe Date: Fri, 2 Aug 2024 11:51:49 +1000 Subject: [PATCH] Adjust defaults for container0 (build container) as it is too frugal --- cmd/controller/controller_test.go | 7 ++----- examples/config.yaml | 6 ++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/cmd/controller/controller_test.go b/cmd/controller/controller_test.go index cac81d55..c17a5f3e 100644 --- a/cmd/controller/controller_test.go +++ b/cmd/controller/controller_test.go @@ -82,11 +82,8 @@ func TestReadAndParseConfig(t *testing.T) { }, Resources: corev1.ResourceRequirements{ Requests: corev1.ResourceList{ - "cpu": resource.MustParse("100m"), - "mem": resource.MustParse("50Mi"), - }, - Limits: corev1.ResourceList{ - "mem": resource.MustParse("1Gi"), + "cpu": resource.MustParse("1000m"), + "mem": resource.MustParse("4Gi"), }, }, }, diff --git a/examples/config.yaml b/examples/config.yaml index 920d47e0..72e69060 100644 --- a/examples/config.yaml +++ b/examples/config.yaml @@ -57,7 +57,5 @@ pod-spec-patch: key: github-token resources: requests: - cpu: 100m - mem: 50Mi - limits: - mem: 1Gi + cpu: 1000m # one core + mem: 4Gi