From 1d29c3776a224c3f6aa905f279b68cc1fa785f40 Mon Sep 17 00:00:00 2001 From: Mark Mercado Date: Sun, 18 Dec 2022 18:21:09 -0500 Subject: [PATCH] Set `st2client` resources by `values.yaml` --- CHANGELOG.md | 1 + templates/deployments.yaml | 4 +--- values.yaml | 4 ++++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a67685d..ea173232 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## In Development +* Set `st2client` resources by `values.yaml`. (#337) (by @mamercad) * Temporary workaround for #311 to use previous bitnami index from: https://github.com/bitnami/charts/issues/10539 (#312 #318) (by @0xhaven) * Refactor label definitions to be more consistent by building labels and label selectors in partial helper templates. (#299) (by @cognifloyd) * Use the correct `apiVersion` for `Ingress` to add support for Kubernetes `v1.22`. (#301) (by @arms11) diff --git a/templates/deployments.yaml b/templates/deployments.yaml index 92dbb3fc..7a488f94 100644 --- a/templates/deployments.yaml +++ b/templates/deployments.yaml @@ -1653,9 +1653,7 @@ spec: exec: command: ["/bin/bash", "/post-start.sh"] resources: - requests: - memory: "5Mi" - cpu: "5m" + {{- toYaml .Values.st2client.resources | nindent 10 }} volumes: {{- if ne "disable" (default "" .Values.st2.datastore_crypto_key) }} - name: st2-encryption-key-vol diff --git a/values.yaml b/values.yaml index a66fdc5e..b039ff87 100644 --- a/values.yaml +++ b/values.yaml @@ -797,6 +797,10 @@ st2client: nodeSelector: {} tolerations: [] affinity: {} + resources: + requests: + memory: "5Mi" + cpu: "5m" # https://docs.stackstorm.com/reference/ha.html#st2garbagecollector # Optional service that cleans up old executions and other operations data based on setup configurations.