Skip to content

Commit b45c859

Browse files
authored
Merge pull request #339 from mamercad/st2client-resources
Set `st2client` resources by `values.yaml`
2 parents 857fd7d + 4739ebc commit b45c859

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## In Development
4+
* Set `st2client` resources by `values.yaml`. (#337) (by @mamercad)
45
* Switch to the official `bats` Docker image for e2e tests. (#338)
56
* Temporary workaround for #311 to use previous bitnami index from: https://github.com/bitnami/charts/issues/10539 (#312 #318) (by @0xhaven)
67
* Refactor label definitions to be more consistent by building labels and label selectors in partial helper templates. (#299) (by @cognifloyd)

templates/deployments.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,9 +1653,7 @@ spec:
16531653
exec:
16541654
command: ["/bin/bash", "/post-start.sh"]
16551655
resources:
1656-
requests:
1657-
memory: "5Mi"
1658-
cpu: "5m"
1656+
{{- toYaml .Values.st2client.resources | nindent 10 }}
16591657
volumes:
16601658
{{- if ne "disable" (default "" .Values.st2.datastore_crypto_key) }}
16611659
- name: st2-encryption-key-vol

values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,10 @@ st2client:
797797
nodeSelector: {}
798798
tolerations: []
799799
affinity: {}
800+
resources:
801+
requests:
802+
memory: "5Mi"
803+
cpu: "5m"
800804

801805
# https://docs.stackstorm.com/reference/ha.html#st2garbagecollector
802806
# Optional service that cleans up old executions and other operations data based on setup configurations.

0 commit comments

Comments
 (0)