@@ -143,6 +143,7 @@ spec:
143
143
heritage : {{ .Release.Service }}
144
144
annotations :
145
145
checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
146
+ checksum/datastore-key : {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
146
147
spec :
147
148
imagePullSecrets :
148
149
{{- if .Values.enterprise.enabled }}
@@ -204,6 +205,11 @@ spec:
204
205
- name : st2-config-vol
205
206
mountPath : /etc/st2/st2.user.conf
206
207
subPath : st2.user.conf
208
+ {{- if .Values.secrets.st2.datastore_crypto_key }}
209
+ - name : st2-encryption-key-vol
210
+ mountPath : /etc/st2/keys
211
+ readOnly : true
212
+ {{- end }}
207
213
{{- if .Values.st2.packs.image.repository }}
208
214
- name : st2-packs-vol
209
215
mountPath : /opt/stackstorm/packs
@@ -218,6 +224,14 @@ spec:
218
224
serviceAccountName : {{ template "stackstorm-ha.serviceAccountName" . }}
219
225
{{- end }}
220
226
volumes :
227
+ {{- if .Values.secrets.st2.datastore_crypto_key }}
228
+ - name : st2-encryption-key-vol
229
+ secret :
230
+ secretName : {{ .Release.Name }}-st2-datastore-crypto-key
231
+ items :
232
+ - key : datastore_crypto_key
233
+ path : datastore_key.json
234
+ {{- end }}
221
235
- name : st2-config-vol
222
236
configMap :
223
237
name : {{ .Release.Name }}-st2-config
@@ -468,6 +482,14 @@ spec:
468
482
- name : st2-config-vol
469
483
configMap :
470
484
name : {{ .Release.Name }}-st2-config
485
+ {{- if .Values.secrets.st2.datastore_crypto_key }}
486
+ - name : st2-encryption-key-vol
487
+ secret :
488
+ secretName : datastore_crypto_key
489
+ items :
490
+ - key : datastore_crypto_key
491
+ path : datastore_key.json
492
+ {{- end }}
471
493
{{- with .Values.st2rulesengine.nodeSelector }}
472
494
nodeSelector :
473
495
{{ toYaml . | indent 8 }}
@@ -594,6 +616,7 @@ spec:
594
616
heritage : {{ .Release.Service }}
595
617
annotations :
596
618
checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
619
+ checksum/datastore-key : {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
597
620
spec :
598
621
{{- if .Values.enterprise.enabled }}
599
622
imagePullSecrets :
@@ -616,6 +639,11 @@ spec:
616
639
- name : st2-config-vol
617
640
mountPath : /etc/st2/st2.user.conf
618
641
subPath : st2.user.conf
642
+ {{- if .Values.secrets.st2.datastore_crypto_key }}
643
+ - name : st2-encryption-key-vol
644
+ mountPath : /etc/st2/keys
645
+ readOnly : true
646
+ {{- end }}
619
647
resources :
620
648
{{ toYaml .Values.st2workflowengine.resources | indent 10 }}
621
649
{{- if .Values.st2workflowengine.serviceAccount.attach }}
@@ -625,6 +653,14 @@ spec:
625
653
- name : st2-config-vol
626
654
configMap :
627
655
name : {{ .Release.Name }}-st2-config
656
+ {{- if .Values.secrets.st2.datastore_crypto_key }}
657
+ - name : st2-encryption-key-vol
658
+ secret :
659
+ secretName : {{ .Release.Name }}-st2-datastore-crypto-key
660
+ items :
661
+ - key : datastore_crypto_key
662
+ path : datastore_key.json
663
+ {{- end }}
628
664
{{- with .Values.st2workflowengine.nodeSelector }}
629
665
nodeSelector :
630
666
{{ toYaml . | indent 8 }}
@@ -831,6 +867,7 @@ spec:
831
867
annotations :
832
868
checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") $ | sha256sum }}
833
869
checksum/packs : {{ include (print $.Template.BasePath "/configmaps_packs.yaml") $ | sha256sum }}
870
+ checksum/datastore-key : {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") $ | sha256sum }}
834
871
{{- if .annotations }}
835
872
{{ toYaml .annotations | indent 8 }}
836
873
{{- end }}
@@ -914,12 +951,25 @@ spec:
914
951
mountPath : /opt/stackstorm/virtualenvs
915
952
readOnly : true
916
953
{{- end }}
954
+ {{- if $.Values.secrets.st2.datastore_crypto_key }}
955
+ - name : st2-encryption-key-vol
956
+ mountPath : /etc/st2/keys
957
+ readOnly : true
958
+ {{- end }}
917
959
resources :
918
960
{{ toYaml .resources | indent 10 }}
919
961
{{- if .serviceAccount.attach }}
920
962
serviceAccountName : {{ template "stackstorm-ha.serviceAccountName" $ }}
921
963
{{- end }}
922
964
volumes :
965
+ {{- if $.Values.secrets.st2.datastore_crypto_key }}
966
+ - name : st2-encryption-key-vol
967
+ secret :
968
+ secretName : {{ $.Release.Name }}-st2-datastore-crypto-key
969
+ items :
970
+ - key : datastore_crypto_key
971
+ path : datastore_key.json
972
+ {{- end }}
923
973
- name : st2-config-vol
924
974
configMap :
925
975
name : {{ $.Release.Name }}-st2-config
@@ -979,6 +1029,7 @@ spec:
979
1029
annotations :
980
1030
checksum/config : {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
981
1031
checksum/ssh : {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }}
1032
+ checksum/datastore-key : {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
982
1033
{{- if .Values.st2actionrunner.annotations }}
983
1034
{{ toYaml .Values.st2actionrunner.annotations | indent 8 }}
984
1035
{{- end }}
@@ -1046,6 +1097,11 @@ spec:
1046
1097
- name : st2-ssh-key-vol
1047
1098
mountPath : /home/stanley/.ssh/
1048
1099
readOnly : true
1100
+ {{- if .Values.secrets.st2.datastore_crypto_key }}
1101
+ - name : st2-encryption-key-vol
1102
+ mountPath : /etc/st2/keys
1103
+ readOnly : true
1104
+ {{- end }}
1049
1105
{{- if .Values.st2.packs.image.repository }}
1050
1106
- name : st2-packs-vol
1051
1107
mountPath : /opt/stackstorm/packs
@@ -1060,6 +1116,14 @@ spec:
1060
1116
serviceAccountName : {{ template "stackstorm-ha.serviceAccountName" . }}
1061
1117
{{- end }}
1062
1118
volumes :
1119
+ {{- if .Values.secrets.st2.datastore_crypto_key }}
1120
+ - name : st2-encryption-key-vol
1121
+ secret :
1122
+ secretName : {{ .Release.Name }}-st2-datastore-crypto-key
1123
+ items :
1124
+ - key : datastore_crypto_key
1125
+ path : datastore_key.json
1126
+ {{- end }}
1063
1127
- name : st2-config-vol
1064
1128
configMap :
1065
1129
name : {{ .Release.Name }}-st2-config
@@ -1206,6 +1270,7 @@ spec:
1206
1270
checksum/packs : {{ include (print $.Template.BasePath "/configmaps_packs.yaml") . | sha256sum }}
1207
1271
checksum/auth : {{ include (print $.Template.BasePath "/secrets_st2auth.yaml") . | sha256sum }}
1208
1272
checksum/ssh : {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }}
1273
+ checksum/datastore-key : {{ include (print $.Template.BasePath "/secrets_datastore_crypto_key.yaml") . | sha256sum }}
1209
1274
spec :
1210
1275
imagePullSecrets :
1211
1276
{{- if .Values.enterprise.enabled }}
@@ -1309,6 +1374,11 @@ spec:
1309
1374
- name : st2-ssh-key-vol
1310
1375
mountPath : /home/stanley/.ssh/
1311
1376
readOnly : true
1377
+ {{- if .Values.secrets.st2.datastore_crypto_key }}
1378
+ - name : st2-encryption-key-vol
1379
+ mountPath : /etc/st2/keys
1380
+ readOnly : true
1381
+ {{- end }}
1312
1382
{{- if .Values.st2.packs.image.repository }}
1313
1383
- name : st2-packs-vol
1314
1384
mountPath : /opt/stackstorm/packs
@@ -1326,6 +1396,14 @@ spec:
1326
1396
memory : " 5Mi"
1327
1397
cpu : " 5m"
1328
1398
volumes :
1399
+ {{- if .Values.secrets.st2.datastore_crypto_key }}
1400
+ - name : st2-encryption-key-vol
1401
+ secret :
1402
+ secretName : {{ .Release.Name }}-st2-datastore-crypto-key
1403
+ items :
1404
+ - key : datastore_crypto_key
1405
+ path : datastore_key.json
1406
+ {{- end }}
1329
1407
- name : st2-config-vol
1330
1408
configMap :
1331
1409
name : {{ .Release.Name }}-st2-config
0 commit comments