File tree Expand file tree Collapse file tree 4 files changed +43
-0
lines changed
Expand file tree Collapse file tree 4 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
33## In Development
4+ * Add option to define config.js for st2web (#165 ) (by @moonrail )
45
56## v0.51.0
67* Added Redis with Sentinel to replace etcd as a coordination backend (#169 )
Original file line number Diff line number Diff line change 1+ {{- if .Values.st2web.config }}
2+ ---
3+ apiVersion : v1
4+ kind : ConfigMap
5+ metadata :
6+ name : {{ .Release.Name }}-st2web-config
7+ annotations :
8+ description : Custom StackStorm Web config which will override defaults
9+ labels :
10+ app : st2
11+ tier : backend
12+ vendor : stackstorm
13+ support : {{ template "supportMethod" . }}
14+ chart : {{ .Chart.Name }}-{{ .Chart.Version }}
15+ release : {{ .Release.Name }}
16+ heritage : {{ .Release.Service }}
17+ data :
18+ # User-defined st2web config with custom settings to replace default config.js
19+ # See https://github.com/StackStorm/st2web#connecting-to-st2-server for more info
20+ st2web.config.js : |
21+ {{ .Values.st2web.config | indent 4 }}
22+ {{- end }}
Original file line number Diff line number Diff line change @@ -373,6 +373,8 @@ spec:
373373 chart : {{ .Chart.Name }}-{{ .Chart.Version }}
374374 release : {{ .Release.Name }}
375375 heritage : {{ .Release.Service }}
376+ annotations :
377+ checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2web.yaml") . | sha256sum }}
376378 spec :
377379 imagePullSecrets :
378380 {{- if .Values.enterprise.enabled }}
@@ -409,13 +411,27 @@ spec:
409411 - configMapRef :
410412 name : {{ .Release.Name }}-st2-urls
411413 optional : true
414+ {{- if .Values.st2web.config }}
415+ volumeMounts :
416+ - name : st2web-config-vol
417+ mountPath : /opt/stackstorm/static/webui/config.js
418+ subPath : st2web.config.js
419+ {{- else }}
412420 volumeMounts : []
421+ {{- end }}
413422 resources :
414423{{ toYaml .Values.st2web.resources | indent 10 }}
415424 {{- if .Values.st2web.serviceAccount.attach }}
416425 serviceAccountName : {{ template "stackstorm-ha.serviceAccountName" . }}
417426 {{- end }}
427+ {{- if .Values.st2web.config }}
428+ volumes :
429+ - name : st2web-config-vol
430+ configMap :
431+ name : {{ .Release.Name }}-st2web-config
432+ {{- else }}
418433 volumes : []
434+ {{- end }}
419435 {{- with .Values.st2web.nodeSelector }}
420436 nodeSelector :
421437{{ toYaml . | indent 8 }}
Original file line number Diff line number Diff line change @@ -253,6 +253,10 @@ st2web:
253253 affinity : {}
254254 serviceAccount :
255255 attach : false
256+ # User-defined st2web config with custom settings to replace default config.js
257+ # See https://github.com/StackStorm/st2web#connecting-to-st2-server for more info
258+ # config: |
259+ # // see https://github.com/StackStorm/st2web/blob/master/config.js
256260# https://docs.stackstorm.com/reference/ha.html#st2auth
257261# Multiple st2auth processes can be behind a load balancer in an active-active configuration.
258262st2auth :
You can’t perform that action at this time.
0 commit comments