Commit e7686f1 1 parent 64eea72 commit e7686f1 Copy full SHA for e7686f1
File tree 10 files changed +25
-23
lines changed
spartan/aztec-network/templates
10 files changed +25
-23
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,14 @@ app.kubernetes.io/name: {{ include "aztec-network.name" . }}
50
50
app.kubernetes.io/instance: { { .Release.Name } }
51
51
{ {- end } }
52
52
53
+ { {/*
54
+ Aztec Image
55
+ */} }
56
+ { {- define " aztec-network.image" -} }
57
+ image: { { .Values.images.aztec.image } }
58
+ imagePullPolicy: { { .Values.images.aztec.pullPolicy } }
59
+ { {- end -} }
60
+
53
61
54
62
55
63
{ {- define " aztec-network.pxeUrl" -} }
Original file line number Diff line number Diff line change 35
35
{{- include "aztec-network.p2pSetupContainer" . | nindent 8 }}
36
36
{{- include "aztec-network.serviceAddressSetupContainer" . | nindent 8 }}
37
37
- name : wait-for-ethereum
38
- image : {{ .Values.images. aztec.image }}
38
+ {{- include " aztec-network .image" . | nindent 10 }}
39
39
command :
40
40
- /bin/bash
41
41
- -c
62
62
mountPath : /shared/config
63
63
{{- if .Values.bootNode.deployContracts }}
64
64
- name : deploy-l1-contracts
65
- image : {{ .Values.images. aztec.image }}
65
+ {{- include " aztec-network .image" . | nindent 10 }}
66
66
command :
67
67
[
68
68
" /bin/bash" ,
97
97
{{- end }}
98
98
containers :
99
99
- name : boot-node
100
- image : {{ .Values.images. aztec.image }}
100
+ {{- include " aztec-network .image" . | nindent 10 }}
101
101
command :
102
102
- /bin/bash
103
103
- -c
Original file line number Diff line number Diff line change 27
27
name : {{ include "aztec-network.fullname" . }}-scripts
28
28
containers :
29
29
- name : deploy-l1-verifier
30
- image : {{ .Values.images. aztec.image }}
30
+ {{- include " aztec-network .image" . | nindent 10 }}
31
31
command :
32
32
- /bin/bash
33
33
- -c
Original file line number Diff line number Diff line change 45
45
initContainers :
46
46
{{- include "aztec-network.serviceAddressSetupContainer" . | nindent 8 }}
47
47
- name : wait-for-prover-node
48
- image : {{ .Values.images. aztec.image }}
48
+ {{- include " aztec-network .image" . | nindent 10 }}
49
49
command :
50
50
- /bin/bash
51
51
- -c
69
69
mountPath : /shared/config
70
70
containers :
71
71
- name : prover-agent
72
- image : " {{ .Values.images.aztec.image }}"
73
- imagePullPolicy : {{ .Values.images.aztec.pullPolicy }}
72
+ {{- include "aztec-network.image" . | nindent 10 }}
74
73
volumeMounts :
75
74
- name : config
76
75
mountPath : /shared/config
Original file line number Diff line number Diff line change 32
32
initContainers :
33
33
{{- include "aztec-network.serviceAddressSetupContainer" . | nindent 8 }}
34
34
- name : wait-for-prover-node
35
- image : {{ .Values.images. aztec.image }}
35
+ {{- include " aztec-network .image" . | nindent 10 }}
36
36
command :
37
37
- /bin/bash
38
38
- -c
51
51
mountPath : /shared/config
52
52
containers :
53
53
- name : prover-broker
54
- image : " {{ .Values.images.aztec.image }}"
55
- imagePullPolicy : {{ .Values.images.aztec.pullPolicy }}
54
+ {{- include "aztec-network.image" . | nindent 10 }}
56
55
volumeMounts :
57
56
- name : config
58
57
mountPath : /shared/config
Original file line number Diff line number Diff line change 27
27
{{- include "aztec-network.serviceAddressSetupContainer" . | nindent 8 }}
28
28
{{- include "aztec-network.p2pSetupContainer" . | nindent 8 }}
29
29
- name : wait-for-services
30
- image : {{ .Values.images. aztec.image }}
30
+ {{- include " aztec-network .image" . | nindent 10 }}
31
31
command :
32
32
- /bin/bash
33
33
- -c
71
71
value : " {{ .Values.proverNode.proverBroker.enabled }}"
72
72
73
73
- name : configure-prover-env
74
- image : " {{ .Values.images.aztec.image }}"
75
- imagePullPolicy : {{ .Values.images.aztec.pullPolicy }}
74
+ {{- include "aztec-network.image" . | nindent 10 }}
76
75
command :
77
76
- " /bin/bash"
78
77
- " -c"
90
89
91
90
containers :
92
91
- name : prover-node
93
- image : " {{ .Values.images.aztec.image }}"
94
- imagePullPolicy : {{ .Values.images.aztec.pullPolicy }}
92
+ {{- include "aztec-network.image" . | nindent 10 }}
95
93
command :
96
94
- " /bin/bash"
97
95
- " -c"
Original file line number Diff line number Diff line change 61
61
{{- end }}
62
62
containers :
63
63
- name : pxe
64
- image : " {{ .Values.images. aztec.image }} "
64
+ {{- include " aztec-network .image" . | nindent 10 }}
65
65
volumeMounts :
66
66
- name : config
67
67
mountPath : /shared/config
Original file line number Diff line number Diff line change 26
26
emptyDir : {}
27
27
containers :
28
28
- name : setup-l2-contracts
29
- image : {{ .Values.images. aztec.image }}
29
+ {{- include " aztec-network .image" . | nindent 10 }}
30
30
volumeMounts :
31
31
- name : config
32
32
mountPath : /shared/config
Original file line number Diff line number Diff line change 53
53
mountPath : /shared/config
54
54
containers :
55
55
- name : transaction-bot
56
- image : " {{ .Values.images. aztec.image }} "
56
+ {{- include " aztec-network .image" . | nindent 10 }}
57
57
volumeMounts :
58
58
- name : config
59
59
mountPath : /shared/config
Original file line number Diff line number Diff line change 36
36
{{- include "aztec-network.p2pSetupContainer" . | nindent 8 }}
37
37
{{- include "aztec-network.serviceAddressSetupContainer" . | nindent 8 }}
38
38
- name : wait-for-services
39
- image : {{ .Values.images. aztec.image }}
39
+ {{- include " aztec-network .image" . | nindent 10 }}
40
40
command :
41
41
- /bin/bash
42
42
- -c
79
79
mountPath : /shared/config
80
80
81
81
- name : configure-validator-env
82
- image : " {{ .Values.images.aztec.image }}"
83
- imagePullPolicy : {{ .Values.images.aztec.pullPolicy }}
82
+ {{- include "aztec-network.image" . | nindent 10 }}
84
83
command :
85
84
- " /bin/bash"
86
85
- " -c"
@@ -108,8 +107,7 @@ spec:
108
107
fieldPath : metadata.name
109
108
containers :
110
109
- name : validator
111
- image : " {{ .Values.images.aztec.image }}"
112
- imagePullPolicy : {{ .Values.images.aztec.pullPolicy }}
110
+ {{- include "aztec-network.image" . | nindent 10 }}
113
111
command :
114
112
- " /bin/bash"
115
113
- " -c"
You can’t perform that action at this time.
0 commit comments