@@ -1602,32 +1602,35 @@ spec:
16021602 port : 8081
16031603 initialDelaySeconds : 10
16041604 periodSeconds : 30
1605- {{- if .Values.st2chatops.postStartScript }}
1605+ resources : {{- toYaml .Values.st2chatops.resources | nindent 10 }}
1606+ {{- if or .Values.st2chatops.hubotScriptsVolume .Values.st2chatops.postStartScript }}
16061607 volumeMounts :
1608+ {{- if .Values.st2chatops.hubotScriptsVolume }}
1609+ - name : st2-chatops-hubot-scripts-vol
1610+ mountPath : /opt/stackstorm/chatops/scripts
1611+ {{- end }}
1612+ {{- if .Values.st2chatops.postStartScript }}
16071613 - name : st2-post-start-script-vol
16081614 mountPath : /post-start.sh
16091615 subPath : post-start.sh
16101616 lifecycle :
16111617 postStart :
16121618 exec :
16131619 command : ["/bin/bash", "/post-start.sh"]
1614- volumes :
1615- - name : st2-post-start-script-vol
1616- configMap :
1617- name : {{ .Release.Name }}-st2chatops-post-start-script
16181620 {{- end }}
1619- resources :
1620- {{- toYaml .Values.st2chatops.resources | nindent 10 }}
1621- {{- if .Values.st2chatops.serviceAccount.attach }}
1622- serviceAccountName : {{ template "stackstorm-ha.serviceAccountName" . }}
1623- {{- end }}
1624- {{- if .Values.st2chatops.hubotScriptsVolume }}
1625- volumeMounts :
1626- - name : st2-chatops-hubot-scripts-vol
1627- mountPath : /opt/stackstorm/chatops/scripts
16281621 volumes :
1622+ {{- if .Values.st2chatops.hubotScriptsVolume }}
16291623 - name : st2-chatops-hubot-scripts-vol
16301624 {{- toYaml .Values.st2chatops.hubotScriptsVolume | nindent 10 }}
1625+ {{- end }}
1626+ {{- if .Values.st2chatops.postStartScript }}
1627+ - name : st2-post-start-script-vol
1628+ configMap :
1629+ name : {{ .Release.Name }}-st2chatops-post-start-script
1630+ {{- end }}
1631+ {{- end }}
1632+ {{- if .Values.st2chatops.serviceAccount.attach }}
1633+ serviceAccountName : {{ template "stackstorm-ha.serviceAccountName" . }}
16311634 {{- end }}
16321635 {{- if .Values.dnsPolicy }}
16331636 dnsPolicy : {{ .Values.dnsPolicy }}
0 commit comments