From c3eccce364b22cbb0e895ad2deb2dbd780ed1192 Mon Sep 17 00:00:00 2001 From: Maria Ines Parnisari Date: Wed, 7 Jun 2023 13:28:46 -0700 Subject: [PATCH] feat: make memory configurable --- charts/benchmark/Chart.yaml | 2 +- charts/benchmark/templates/pod.yaml | 4 ++-- charts/benchmark/values.yaml | 6 +++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/charts/benchmark/Chart.yaml b/charts/benchmark/Chart.yaml index bf5d573..9414b77 100644 --- a/charts/benchmark/Chart.yaml +++ b/charts/benchmark/Chart.yaml @@ -3,7 +3,7 @@ name: benchmark description: A Kubernetes Helm chart to deploy OpenFGA and run the standard benchmark suite against it. type: application -version: 0.0.11 +version: 0.0.12 appVersion: "v1.0.1" home: "https://openfga.github.io/helm-charts/charts/benchmark" diff --git a/charts/benchmark/templates/pod.yaml b/charts/benchmark/templates/pod.yaml index dfc3d2a..7236c75 100644 --- a/charts/benchmark/templates/pod.yaml +++ b/charts/benchmark/templates/pod.yaml @@ -12,9 +12,9 @@ spec: image: grafana/k6:0.43.1 resources: requests: - memory: "256Mi" + memory: {{ .Values.resources.requests.memory }} limits: - memory: "512Mi" + memory: {{ .Values.resources.limits.memory }} {{- if .Values.k6.projectID }} args: ["run", "--out", "cloud", "/etc/scripts/app.bundle.js"] {{ else }} diff --git a/charts/benchmark/values.yaml b/charts/benchmark/values.yaml index 5fa212f..299b04e 100644 --- a/charts/benchmark/values.yaml +++ b/charts/benchmark/values.yaml @@ -3,7 +3,11 @@ k6: secretKeyName: k6-cloud-token secretKeyToken: token setupTimeoutInMs: 1200000 - +resources: + requests: + memory: 256Mi + limits: + memory: 512Mi Nparam: 1 Mparam: 1 Kparam: 1