|
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: |
@@ -219,6 +222,9 @@ spec: |
219 | 222 | {{- end }} |
220 | 223 | resources: |
221 | 224 | {{ toYaml .Values.st2api.resources | indent 10 }} |
| 225 | + {{- if .Values.st2api.serviceAccount.attach }} |
| 226 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 227 | + {{- end }} |
222 | 228 | volumes: |
223 | 229 | {{- if .Values.secrets.st2.datastore_crypto_key }} |
224 | 230 | - name: st2-encryption-key-vol |
@@ -310,6 +316,9 @@ spec: |
310 | 316 | subPath: st2.user.conf |
311 | 317 | resources: |
312 | 318 | {{ toYaml .Values.st2stream.resources | indent 10 }} |
| 319 | + {{- if .Values.st2stream.serviceAccount.attach }} |
| 320 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 321 | + {{- end }} |
313 | 322 | volumes: |
314 | 323 | - name: st2-config-vol |
315 | 324 | configMap: |
@@ -393,6 +402,9 @@ spec: |
393 | 402 | volumeMounts: [] |
394 | 403 | resources: |
395 | 404 | {{ toYaml .Values.st2web.resources | indent 10 }} |
| 405 | + {{- if .Values.st2web.serviceAccount.attach }} |
| 406 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 407 | + {{- end }} |
396 | 408 | volumes: [] |
397 | 409 | {{- with .Values.st2web.nodeSelector }} |
398 | 410 | nodeSelector: |
@@ -473,6 +485,9 @@ spec: |
473 | 485 | {{- end }} |
474 | 486 | resources: |
475 | 487 | {{ toYaml .Values.st2rulesengine.resources | indent 10 }} |
| 488 | + {{- if .Values.st2rulesengine.serviceAccount.attach }} |
| 489 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 490 | + {{- end }} |
476 | 491 | volumes: |
477 | 492 | - name: st2-config-vol |
478 | 493 | configMap: |
@@ -557,6 +572,9 @@ spec: |
557 | 572 | subPath: st2.user.conf |
558 | 573 | resources: |
559 | 574 | {{ toYaml .Values.st2timersengine.resources | indent 10 }} |
| 575 | + {{- if .Values.st2timersengine.serviceAccount.attach }} |
| 576 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 577 | + {{- end }} |
560 | 578 | volumes: |
561 | 579 | - name: st2-config-vol |
562 | 580 | configMap: |
@@ -640,6 +658,9 @@ spec: |
640 | 658 | {{- end }} |
641 | 659 | resources: |
642 | 660 | {{ toYaml .Values.st2workflowengine.resources | indent 10 }} |
| 661 | + {{- if .Values.st2workflowengine.serviceAccount.attach }} |
| 662 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 663 | + {{- end }} |
643 | 664 | volumes: |
644 | 665 | - name: st2-config-vol |
645 | 666 | configMap: |
@@ -722,6 +743,9 @@ spec: |
722 | 743 | subPath: st2.user.conf |
723 | 744 | resources: |
724 | 745 | {{ toYaml .Values.st2scheduler.resources | indent 10 }} |
| 746 | + {{- if .Values.st2scheduler.serviceAccount.attach }} |
| 747 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 748 | + {{- end }} |
725 | 749 | volumes: |
726 | 750 | - name: st2-config-vol |
727 | 751 | configMap: |
@@ -797,6 +821,9 @@ spec: |
797 | 821 | subPath: st2.user.conf |
798 | 822 | resources: |
799 | 823 | {{ toYaml .Values.st2notifier.resources | indent 10 }} |
| 824 | + {{- if .Values.st2notifier.serviceAccount.attach }} |
| 825 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 826 | + {{- end }} |
800 | 827 | volumes: |
801 | 828 | - name: st2-config-vol |
802 | 829 | configMap: |
@@ -942,6 +969,9 @@ spec: |
942 | 969 | {{- end }} |
943 | 970 | resources: |
944 | 971 | {{ toYaml .resources | indent 10 }} |
| 972 | + {{- if .serviceAccount.attach }} |
| 973 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" $ }} |
| 974 | + {{- end }} |
945 | 975 | volumes: |
946 | 976 | {{- if $.Values.secrets.st2.datastore_crypto_key }} |
947 | 977 | - name: st2-encryption-key-vol |
@@ -1092,6 +1122,9 @@ spec: |
1092 | 1122 | {{- end }} |
1093 | 1123 | resources: |
1094 | 1124 | {{ toYaml .Values.st2actionrunner.resources | indent 10 }} |
| 1125 | + {{- if .Values.st2actionrunner.serviceAccount.attach }} |
| 1126 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 1127 | + {{- end }} |
1095 | 1128 | volumes: |
1096 | 1129 | {{- if .Values.secrets.st2.datastore_crypto_key }} |
1097 | 1130 | - name: st2-encryption-key-vol |
@@ -1189,6 +1222,9 @@ spec: |
1189 | 1222 | subPath: st2.user.conf |
1190 | 1223 | resources: |
1191 | 1224 | {{ toYaml .Values.st2garbagecollector.resources | indent 10 }} |
| 1225 | + {{- if .Values.st2garbagecollector.serviceAccount.attach }} |
| 1226 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 1227 | + {{- end }} |
1192 | 1228 | volumes: |
1193 | 1229 | - name: st2-config-vol |
1194 | 1230 | configMap: |
@@ -1485,6 +1521,9 @@ spec: |
1485 | 1521 | periodSeconds: 30 |
1486 | 1522 | resources: |
1487 | 1523 | {{ toYaml .Values.st2chatops.resources | indent 10 }} |
| 1524 | + {{- if .Values.st2chatops.serviceAccount.attach }} |
| 1525 | + serviceAccountName: {{ template "stackstorm-ha.serviceAccountName" . }} |
| 1526 | + {{- end }} |
1488 | 1527 | {{- with .Values.st2chatops.nodeSelector }} |
1489 | 1528 | nodeSelector: |
1490 | 1529 | {{ toYaml . | indent 8 }} |
|
0 commit comments