Skip to content

Commit

Permalink
Merge pull request #207 from cognifloyd/chatops-scripts
Browse files Browse the repository at this point in the history
Add optional (advanced-only) hubot-scripts volume to st2chatops pod
  • Loading branch information
arm4b authored Jul 1, 2021
2 parents 2f9d0c9 + 40e4342 commit 99af4d8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* 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)
* Add image.tag overrides for all deployments. (#200) (by @cognifloyd)
* 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)
* Add optional hubot-scripts volume to st2chatops pod. To add this, define `st2chatops.hubotScriptsVolume`. (#207) (by @cognifloyd)

## v0.60.0
* Switch st2 version to `v3.5dev` as a new latest development version (#187)
Expand Down
8 changes: 8 additions & 0 deletions templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1448,6 +1448,14 @@ spec:
{{- if .Values.st2chatops.serviceAccount.attach }}
serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }}
{{- end }}
{{- if .Values.st2chatops.hubotScriptsVolume }}
volumeMounts:
- name: st2-chatops-hubot-scripts-vol
mountPath: /opt/stackstorm/chatops/scripts
volumes:
- name: st2-chatops-hubot-scripts-vol
{{- toYaml .Values.st2chatops.hubotScriptsVolume | nindent 10 }}
{{- end }}
{{- with .Values.st2chatops.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
Expand Down
5 changes: 5 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ st2chatops:
memory: "50Mi"
cpu: "5m"
annotations: {}
# Advanced use-cases only. If defined, this hubot-scripts volume gets mounted to: /opt/stackstorm/chatops/scripts
# This volume (using any k8s storage solution, including configmap) allows for hubot customization.
# Most installations should not use this.
# For details on writing .js or .coffeescript hubot extensions, see: https://hubot.github.com/docs/scripting/
hubotScriptsVolume: {}
# Additional advanced settings to control pod/deployment placement
nodeSelector: {}
tolerations: []
Expand Down

0 comments on commit 99af4d8

Please sign in to comment.