Skip to content

Commit 804b827

Browse files
authored
Merge branch 'master' into empty-default-rbac-files
2 parents 837f004 + b7fa4ab commit 804b827

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## In Development
44
* Explicitly differentiate sensor modes: `all-sensors-in-one-pod` vs `one-sensor-per-pod`. Exposes the mode in new `stackstorm/sensor-mode` annotation. (#222) (by @cognifloyd)
55
* Allow adding custom env variables to any Deployment or Job. (#120) (by @AngryDeveloper)
6+
* Template the contents of st2.config and the values in st2chatops.env. This allows adding secrets defined elsewhere in values. (#249) (by @cognifloyd)
67
* Set default/sample RBAC config files to "" (empty string) to prevent adding them. This is needed because they cannot be removed by overriding the roles/mappings values. (#247) (by @cognifloyd)
78

89
## v0.70.0
@@ -27,7 +28,7 @@
2728
* Fix a bug when datastore cryto keys are not able to read by the rules engine. ``datastore_crypto_key`` volume is now mounted on the ``st2rulesengine`` pods (#223) (by @moti1992)
2829
* Minimize required sensor config by using default values from st2sensorcontainer for each sensor in st2.packs.sensors (#221) (by @cognifloyd)
2930
* Do not template rabbitmq secrets file unless rabbitmq subchart is enabled. (#242) (by @cognifloyd)
30-
* Automatically st2chatop.env values if needed. (#241) (by @cognifloyd)
31+
* Automatically stringify st2chatop.env values if needed. (#241) (by @cognifloyd)
3132

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

templates/configmaps_st2-conf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ data:
5555
# User-defined st2 config with custom settings applied on top of everything else.
5656
# The order of merging: st2.conf < st2.docker.conf < st2.user.conf
5757
st2.user.conf: |
58-
{{ .Values.st2.config | indent 4 }}
58+
{{- tpl .Values.st2.config . | nindent 4 }}

templates/secrets_st2chatops.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ metadata:
1616
type: Opaque
1717
data:
1818
{{- range $env, $value := .Values.st2chatops.env }}
19-
{{ $env }}: {{ $value | toString | b64enc | quote }}
19+
{{ $env }}: {{ tpl ($value | toString) $ | b64enc | quote }}
2020
{{- end }}
2121
{{- end }}

values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ st2:
6161
# -----END RSA PRIVATE KEY-----
6262

6363
# Custom StackStorm config (st2.user.conf) which will apply settings on top of default st2.conf
64+
# Note that Helm templating is supported in this block!
6465
config: |
6566
[api]
6667
allow_origin = '*'
@@ -642,6 +643,7 @@ st2chatops:
642643
# Custom hubot adapter ENV variables to pass through which will override st2chatops.env defaults.
643644
# See https://github.com/StackStorm/st2chatops/blob/master/st2chatops.env
644645
# for the full list of supported adapters and example ENV variables.
646+
# Note that Helm templating is supported for env values in this block!
645647
env:
646648
HUBOT_ADAPTER: slack
647649
HUBOT_SLACK_TOKEN: xoxb-CHANGE-ME-PLEASE

0 commit comments

Comments
 (0)