Skip to content

Commit ec7b109

Browse files
authored
Merge branch 'master' into refactor-secrets
2 parents d43bd53 + 99af4d8 commit ec7b109

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
@@ -10,6 +10,7 @@
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)
1111
* BREAKING CHANGE: Move secrets.st2.* values into st2.* (#203) (by @cognifloyd)
1212
* Auto-generate password and ssh_key secrets. (#203) (by @cognifloyd)
13+
* Add optional hubot-scripts volume to st2chatops pod. To add this, define `st2chatops.hubotScriptsVolume`. (#207) (by @cognifloyd)
1314

1415
## v0.60.0
1516
* 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
@@ -484,6 +484,11 @@ st2chatops:
484484
memory: "50Mi"
485485
cpu: "5m"
486486
annotations: {}
487+
# Advanced use-cases only. If defined, this hubot-scripts volume gets mounted to: /opt/stackstorm/chatops/scripts
488+
# This volume (using any k8s storage solution, including configmap) allows for hubot customization.
489+
# Most installations should not use this.
490+
# For details on writing .js or .coffeescript hubot extensions, see: https://hubot.github.com/docs/scripting/
491+
hubotScriptsVolume: {}
487492
# Additional advanced settings to control pod/deployment placement
488493
nodeSelector: {}
489494
tolerations: []

0 commit comments

Comments
 (0)