Skip to content

Commit 99af4d8

Browse files
authored
Merge pull request #207 from cognifloyd/chatops-scripts
Add optional (advanced-only) hubot-scripts volume to st2chatops pod
2 parents 2f9d0c9 + 40e4342 commit 99af4d8

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
@@ -8,6 +8,7 @@
88
* st2chatops change: If `st2chatops.env.ST2_API_KEY` is defined, do not set `ST2_AUTH_USERNAME` or `ST2_AUTH_PASSWORD` env vars any more. (#197) (by @cognifloyd)
99
* Add image.tag overrides for all deployments. (#200) (by @cognifloyd)
1010
* If your k8s cluster admin requires custom annotations (eg: to indicate mongo or rabbitmq usage), you can now add those to each set of pods. (#195) (by @cognifloyd)
11+
* Add optional hubot-scripts volume to st2chatops pod. To add this, define `st2chatops.hubotScriptsVolume`. (#207) (by @cognifloyd)
1112

1213
## v0.60.0
1314
* Switch st2 version to `v3.5dev` as a new latest development version (#187)

templates/deployments.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,6 +1448,14 @@ spec:
14481448
{{- if .Values.st2chatops.serviceAccount.attach }}
14491449
serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }}
14501450
{{- end }}
1451+
{{- if .Values.st2chatops.hubotScriptsVolume }}
1452+
volumeMounts:
1453+
- name: st2-chatops-hubot-scripts-vol
1454+
mountPath: /opt/stackstorm/chatops/scripts
1455+
volumes:
1456+
- name: st2-chatops-hubot-scripts-vol
1457+
{{- toYaml .Values.st2chatops.hubotScriptsVolume | nindent 10 }}
1458+
{{- end }}
14511459
{{- with .Values.st2chatops.nodeSelector }}
14521460
nodeSelector:
14531461
{{ toYaml . | indent 8 }}

values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,11 @@ st2chatops:
510510
memory: "50Mi"
511511
cpu: "5m"
512512
annotations: {}
513+
# Advanced use-cases only. If defined, this hubot-scripts volume gets mounted to: /opt/stackstorm/chatops/scripts
514+
# This volume (using any k8s storage solution, including configmap) allows for hubot customization.
515+
# Most installations should not use this.
516+
# For details on writing .js or .coffeescript hubot extensions, see: https://hubot.github.com/docs/scripting/
517+
hubotScriptsVolume: {}
513518
# Additional advanced settings to control pod/deployment placement
514519
nodeSelector: {}
515520
tolerations: []

0 commit comments

Comments
 (0)