File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -729,12 +729,25 @@ spec:
729729 - name : st2-config-vol
730730 mountPath : /etc/st2/st2.user.conf
731731 subPath : st2.user.conf
732+ {{- if .Values.secrets.st2.datastore_crypto_key }}
733+ - name : st2-encryption-key-vol
734+ mountPath : /etc/st2/keys
735+ readOnly : true
736+ {{- end }}
732737 resources :
733738{{ toYaml .Values.st2scheduler.resources | indent 10 }}
734739 {{- if .Values.st2scheduler.serviceAccount.attach }}
735740 serviceAccountName : {{ template "stackstorm-ha.serviceAccountName" . }}
736741 {{- end }}
737742 volumes :
743+ {{- if .Values.secrets.st2.datastore_crypto_key }}
744+ - name : st2-encryption-key-vol
745+ secret :
746+ secretName : {{ .Release.Name }}-st2-datastore-crypto-key
747+ items :
748+ - key : datastore_crypto_key
749+ path : datastore_key.json
750+ {{- end }}
738751 - name : st2-config-vol
739752 configMap :
740753 name : {{ .Release.Name }}-st2-config
You can’t perform that action at this time.
0 commit comments