|
86 | 86 | readOnly: true |
87 | 87 | resources: |
88 | 88 | {{ toYaml .Values.st2auth.resources | indent 10 }} |
| 89 | + {{- if .Values.st2auth.serviceAccount.attach }} |
| 90 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 91 | + {{- end }} |
89 | 92 | volumes: |
90 | 93 | - name: st2-config-vol |
91 | 94 | configMap: |
@@ -211,6 +214,9 @@ spec: |
211 | 214 | {{- end }} |
212 | 215 | resources: |
213 | 216 | {{ toYaml .Values.st2api.resources | indent 10 }} |
| 217 | + {{- if .Values.st2api.serviceAccount.attach }} |
| 218 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 219 | + {{- end }} |
214 | 220 | volumes: |
215 | 221 | - name: st2-config-vol |
216 | 222 | configMap: |
@@ -294,6 +300,9 @@ spec: |
294 | 300 | subPath: st2.user.conf |
295 | 301 | resources: |
296 | 302 | {{ toYaml .Values.st2stream.resources | indent 10 }} |
| 303 | + {{- if .Values.st2stream.serviceAccount.attach }} |
| 304 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 305 | + {{- end }} |
297 | 306 | volumes: |
298 | 307 | - name: st2-config-vol |
299 | 308 | configMap: |
@@ -377,6 +386,9 @@ spec: |
377 | 386 | volumeMounts: [] |
378 | 387 | resources: |
379 | 388 | {{ toYaml .Values.st2web.resources | indent 10 }} |
| 389 | + {{- if .Values.st2web.serviceAccount.attach }} |
| 390 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 391 | + {{- end }} |
380 | 392 | volumes: [] |
381 | 393 | {{- with .Values.st2web.nodeSelector }} |
382 | 394 | nodeSelector: |
@@ -449,6 +461,9 @@ spec: |
449 | 461 | subPath: st2.user.conf |
450 | 462 | resources: |
451 | 463 | {{ toYaml .Values.st2rulesengine.resources | indent 10 }} |
| 464 | + {{- if .Values.st2rulesengine.serviceAccount.attach }} |
| 465 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 466 | + {{- end }} |
452 | 467 | volumes: |
453 | 468 | - name: st2-config-vol |
454 | 469 | configMap: |
@@ -525,6 +540,9 @@ spec: |
525 | 540 | subPath: st2.user.conf |
526 | 541 | resources: |
527 | 542 | {{ toYaml .Values.st2timersengine.resources | indent 10 }} |
| 543 | + {{- if .Values.st2timersengine.serviceAccount.attach }} |
| 544 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 545 | + {{- end }} |
528 | 546 | volumes: |
529 | 547 | - name: st2-config-vol |
530 | 548 | configMap: |
@@ -600,6 +618,9 @@ spec: |
600 | 618 | subPath: st2.user.conf |
601 | 619 | resources: |
602 | 620 | {{ toYaml .Values.st2workflowengine.resources | indent 10 }} |
| 621 | + {{- if .Values.st2workflowengine.serviceAccount.attach }} |
| 622 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 623 | + {{- end }} |
603 | 624 | volumes: |
604 | 625 | - name: st2-config-vol |
605 | 626 | configMap: |
@@ -674,6 +695,9 @@ spec: |
674 | 695 | subPath: st2.user.conf |
675 | 696 | resources: |
676 | 697 | {{ toYaml .Values.st2scheduler.resources | indent 10 }} |
| 698 | + {{- if .Values.st2scheduler.serviceAccount.attach }} |
| 699 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 700 | + {{- end }} |
677 | 701 | volumes: |
678 | 702 | - name: st2-config-vol |
679 | 703 | configMap: |
@@ -749,6 +773,9 @@ spec: |
749 | 773 | subPath: st2.user.conf |
750 | 774 | resources: |
751 | 775 | {{ toYaml .Values.st2notifier.resources | indent 10 }} |
| 776 | + {{- if .Values.st2notifier.serviceAccount.attach }} |
| 777 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 778 | + {{- end }} |
752 | 779 | volumes: |
753 | 780 | - name: st2-config-vol |
754 | 781 | configMap: |
@@ -886,6 +913,9 @@ spec: |
886 | 913 | {{- end }} |
887 | 914 | resources: |
888 | 915 | {{ toYaml .resources | indent 10 }} |
| 916 | + {{- if .serviceAccount.attach }} |
| 917 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" $ }} |
| 918 | + {{- end }} |
889 | 919 | volumes: |
890 | 920 | - name: st2-config-vol |
891 | 921 | configMap: |
@@ -1020,6 +1050,9 @@ spec: |
1020 | 1050 | {{- end }} |
1021 | 1051 | resources: |
1022 | 1052 | {{ toYaml .Values.st2actionrunner.resources | indent 10 }} |
| 1053 | + {{- if .Values.st2actionrunner.serviceAccount.attach }} |
| 1054 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 1055 | + {{- end }} |
1023 | 1056 | volumes: |
1024 | 1057 | - name: st2-config-vol |
1025 | 1058 | configMap: |
@@ -1109,6 +1142,9 @@ spec: |
1109 | 1142 | subPath: st2.user.conf |
1110 | 1143 | resources: |
1111 | 1144 | {{ toYaml .Values.st2garbagecollector.resources | indent 10 }} |
| 1145 | + {{- if .Values.st2garbagecollector.serviceAccount.attach }} |
| 1146 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 1147 | + {{- end }} |
1112 | 1148 | volumes: |
1113 | 1149 | - name: st2-config-vol |
1114 | 1150 | configMap: |
@@ -1389,6 +1425,9 @@ spec: |
1389 | 1425 | periodSeconds: 30 |
1390 | 1426 | resources: |
1391 | 1427 | {{ toYaml .Values.st2chatops.resources | indent 10 }} |
| 1428 | + {{- if .Values.st2chatops.serviceAccount.attach }} |
| 1429 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 1430 | + {{- end }} |
1392 | 1431 | {{- with .Values.st2chatops.nodeSelector }} |
1393 | 1432 | nodeSelector: |
1394 | 1433 | {{ toYaml . | indent 8 }} |
|
0 commit comments