Skip to content

Commit e2fad0b

Browse files
authored
Merge branch 'master' into template-st2client-conf
2 parents e46fa50 + d63c4a9 commit e2fad0b

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* Some `helm upgrades` do not need to run all the jobs. An upgrade that only touches RBAC config, for example, does not need to run the register-content job. Use `--set 'jobs.skip={apikey_load,key_load,register_content}'` to skip the other jobs. (#255) (by @cognifloyd)
1212
* Refactor deployments/jobs to inject st2 username/password via `envFrom` instead of via `env`. (#257) (by @cognifloyd)
1313
* New feature: Add `envFromSecrets` to `st2actionrunner`, `st2client`, `st2sensorcontainer`, and jobs. This is useful for adding custom secrets to the environment. This complements the `extra_volumes` feature (loading secrets as files) to facilitate loading secrets that are not easily injected via the filesystem. (#259) (by @cognifloyd)
14+
* New feature to include `nodeSelector`, `affinity` and `tolerations` to `st2client`, allowing more flexibility to pod positioning. (#263) (by @sandesvitor)
1415
* Template `~/.st2/config`. This allows customizing the settings used by the `st2client` and jobs pods for using the st2 apis. (#262) (by @cognifloyd)
1516

1617
## v0.70.0

templates/deployments.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,6 +1601,15 @@ spec:
16011601
- name: st2-post-start-script-vol
16021602
configMap:
16031603
name: {{ .Release.Name }}-st2client-post-start-script
1604+
{{- with .Values.st2client.nodeSelector }}
1605+
nodeSelector: {{- toYaml . | nindent 8 }}
1606+
{{- end }}
1607+
{{- with .Values.st2client.affinity }}
1608+
affinity: {{- toYaml . | nindent 8 }}
1609+
{{- end }}
1610+
{{- with .Values.st2client.tolerations }}
1611+
tolerations: {{- toYaml . | nindent 8 }}
1612+
{{- end }}
16041613

16051614
{{ if .Values.st2chatops.enabled -}}
16061615
---

values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,10 @@ st2client:
649649
## Note that Helm templating is supported in 'mount' and 'volume'
650650
extra_volumes: []
651651
# see examples under st2actionrunner.extra_volumes
652+
# Additional advanced settings to control pod/deployment placement
653+
nodeSelector: {}
654+
tolerations: []
655+
affinity: {}
652656

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

0 commit comments

Comments
 (0)