-
Notifications
You must be signed in to change notification settings - Fork 327
/
Copy pathconsolidate-balances.yaml
46 lines (46 loc) · 1.47 KB
/
consolidate-balances.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{{- if .Values.ethereum.execution.externalHosts }}
apiVersion: batch/v1
kind: Job
metadata:
name: {{ .Release.Name }}-consolidate-balances
labels:
{{- include "aztec-network.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": post-delete
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed
"helm.sh/hook-weight": "-5"
spec:
template:
metadata:
labels:
{{- include "aztec-network.selectorLabels" . | nindent 8 }}
app: consolidate-balances
spec:
restartPolicy: OnFailure
{{- if .Values.network.public }}
serviceAccountName: {{ include "aztec-network.fullname" . }}-node
{{- end }}
volumes:
- name: config
emptyDir: {}
- name: scripts
configMap:
name: {{ include "aztec-network.fullname" . }}-scripts
defaultMode: 0755
containers:
- name: consolidate-balances
{{- include "aztec-network.image" . | nindent 10 }}
volumeMounts:
- name: scripts
mountPath: /scripts
- name: config
mountPath: /shared/config
command:
- /bin/bash
- -c
- |
/scripts/consolidate-sepolia-balances.sh "{{ .Values.aztec.l1DeploymentMnemonic }}" {{ add .Values.validator.replicas .Values.proverNode.replicas }}
env:
- name: ETHEREUM_HOSTS
value: "{{ .Values.ethereum.execution.externalHosts }}"
{{ end }}