From 8f60b955eb42be644f42e83f18e45a73e6d267b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20M=C3=A9vollon?= <38255502+matmut7@users.noreply.github.com> Date: Tue, 1 Oct 2024 10:23:58 +0200 Subject: [PATCH] fix: more memory for degit init-container (#511) --- .../tests/__snapshots__/job-builds.dev.yaml | 16 ++++++--- .../__snapshots__/job-no-affinity.dev.yaml | 8 +++-- plugins/contrib/charts/job/values.yaml | 33 ++++++++++--------- 3 files changed, 35 insertions(+), 22 deletions(-) diff --git a/packages/kontinuous/tests/__snapshots__/job-builds.dev.yaml b/packages/kontinuous/tests/__snapshots__/job-builds.dev.yaml index bfcf5893b..8ac31e13c 100644 --- a/packages/kontinuous/tests/__snapshots__/job-builds.dev.yaml +++ b/packages/kontinuous/tests/__snapshots__/job-builds.dev.yaml @@ -149,8 +149,12 @@ spec: - name: workspace mountPath: /workspace resources: - limits: {} - requests: {} + limits: + cpu: 1 + memory: 1Gi + requests: + cpu: 1 + memory: 1Gi containers: - name: job image: moby/buildkit:v0.13.0-rootless @@ -417,8 +421,12 @@ spec: - name: workspace mountPath: /workspace resources: - limits: {} - requests: {} + limits: + cpu: 1 + memory: 1Gi + requests: + cpu: 1 + memory: 1Gi containers: - name: job image: moby/buildkit:v0.13.0-rootless diff --git a/packages/kontinuous/tests/__snapshots__/job-no-affinity.dev.yaml b/packages/kontinuous/tests/__snapshots__/job-no-affinity.dev.yaml index 03828a7eb..d42888693 100644 --- a/packages/kontinuous/tests/__snapshots__/job-no-affinity.dev.yaml +++ b/packages/kontinuous/tests/__snapshots__/job-no-affinity.dev.yaml @@ -149,8 +149,12 @@ spec: - name: workspace mountPath: /workspace resources: - limits: {} - requests: {} + limits: + cpu: 1 + memory: 1Gi + requests: + cpu: 1 + memory: 1Gi containers: - name: job image: moby/buildkit:v0.13.0-rootless diff --git a/plugins/contrib/charts/job/values.yaml b/plugins/contrib/charts/job/values.yaml index cd1fba42c..370470c25 100644 --- a/plugins/contrib/charts/job/values.yaml +++ b/plugins/contrib/charts/job/values.yaml @@ -1,8 +1,8 @@ enabled: output: false -namespace: -repository: -gitBranch: +namespace: +repository: +gitBranch: runs: {} defaults: image: "debian:stable" @@ -15,27 +15,27 @@ defaults: serviceAccountName: "" resources: limits: - cpu: - memory: + cpu: + memory: requests: - cpu: - memory: + cpu: + memory: degitRepository: resources: limits: - cpu: - memory: + cpu: "1" + memory: 1Gi requests: - cpu: - memory: + cpu: "1" + memory: 1Gi degitAction: resources: limits: - cpu: - memory: + cpu: + memory: requests: - cpu: - memory: + cpu: + memory: deployKey: enabled: false secretRefName: deploy-key @@ -44,4 +44,5 @@ defaults: secretRefName: kubeconfig secretRefKey: KUBECONFIG mountDeployKey: false -_pluginValuesCompilerContribJob: true \ No newline at end of file +_pluginValuesCompilerContribJob: true +