From fb5fd905cc76dac92043331618332dbd613e63b8 Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 1 Dec 2022 16:38:03 +0100 Subject: [PATCH] [Skip-CI] Update cpu request value --- src/main/cljc/dda/c4k_website/website.cljc | 2 +- src/test/cljc/dda/c4k_website/website_test.cljc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/cljc/dda/c4k_website/website.cljc b/src/main/cljc/dda/c4k_website/website.cljc index e4f4419..c82cad2 100644 --- a/src/main/cljc/dda/c4k_website/website.cljc +++ b/src/main/cljc/dda/c4k_website/website.cljc @@ -120,7 +120,7 @@ [resource-file string? config flattened-and-reduced-config?] (let [{:keys [sha256sum-output build-cpu-request build-cpu-limit build-memory-request build-memory-limit] - :or {build-cpu-request "1000m" build-cpu-limit "1700m" build-memory-request "256Mi" build-memory-limit "512Mi"}} config] + :or {build-cpu-request "500m" build-cpu-limit "1700m" build-memory-request "256Mi" build-memory-limit "512Mi"}} config] (-> (replace-common-data resource-file config) (cm/replace-all-matching-values-by-new-value "CHECK_SUM" (get-hash-from-sha256sum-output sha256sum-output)) diff --git a/src/test/cljc/dda/c4k_website/website_test.cljc b/src/test/cljc/dda/c4k_website/website_test.cljc index 1ed2908..bf92958 100644 --- a/src/test/cljc/dda/c4k_website/website_test.cljc +++ b/src/test/cljc/dda/c4k_website/website_test.cljc @@ -127,7 +127,7 @@ :unique-name "test.io"})))) (deftest should-generate-resource-requests - (is (= {:requests {:cpu "1000m", :memory "256Mi"}, :limits {:cpu "1700m", :memory "512Mi"}} + (is (= {:requests {:cpu "500m", :memory "256Mi"}, :limits {:cpu "1700m", :memory "512Mi"}} (-> (cut/generate-nginx-deployment {:authtoken "abedjgbasdodj", :gitea-host "gitlab.de", :username "someuser", @@ -192,7 +192,7 @@ [{:image "domaindrivenarchitecture/c4k-website-build", :name "test-io-build-app", :imagePullPolicy "IfNotPresent", - :resources {:requests {:cpu "1000m", :memory "256Mi"}, :limits {:cpu "1700m", :memory "512Mi"}}, + :resources {:requests {:cpu "500m", :memory "256Mi"}, :limits {:cpu "1700m", :memory "512Mi"}}, :command ["/entrypoint.sh"], :envFrom [{:secretRef {:name "test-io-secret"}}], :env [{:name "SHA256SUM", :value "123456789ab123cd345de"} {:name "SCRIPTFILE", :value "script-file-name.sh"}],