Skip to content

Commit

Permalink
Merge 68d2d66 into ce0eee0
Browse files Browse the repository at this point in the history
  • Loading branch information
just-mitch authored Dec 11, 2024
2 parents ce0eee0 + 68d2d66 commit c73c9ae
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 23 deletions.
8 changes: 8 additions & 0 deletions spartan/aztec-network/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ app.kubernetes.io/name: {{ include "aztec-network.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Aztec Image
*/}}
{{- define "aztec-network.image" -}}
image: {{ .Values.images.aztec.image }}
imagePullPolicy: {{ .Values.images.aztec.pullPolicy }}
{{- end -}}



{{- define "aztec-network.pxeUrl" -}}
Expand Down
6 changes: 3 additions & 3 deletions spartan/aztec-network/templates/boot-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
{{- include "aztec-network.p2pSetupContainer" . | nindent 8 }}
{{- include "aztec-network.serviceAddressSetupContainer" . | nindent 8 }}
- name: wait-for-ethereum
image: {{ .Values.images.aztec.image }}
{{- include "aztec-network.image" . | nindent 10 }}
command:
- /bin/bash
- -c
Expand All @@ -62,7 +62,7 @@ spec:
mountPath: /shared/config
{{- if .Values.bootNode.deployContracts }}
- name: deploy-l1-contracts
image: {{ .Values.images.aztec.image }}
{{- include "aztec-network.image" . | nindent 10 }}
command:
[
"/bin/bash",
Expand Down Expand Up @@ -97,7 +97,7 @@ spec:
{{- end }}
containers:
- name: boot-node
image: {{ .Values.images.aztec.image }}
{{- include "aztec-network.image" . | nindent 10 }}
command:
- /bin/bash
- -c
Expand Down
2 changes: 1 addition & 1 deletion spartan/aztec-network/templates/deploy-l1-verifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
name: {{ include "aztec-network.fullname" . }}-scripts
containers:
- name: deploy-l1-verifier
image: {{ .Values.images.aztec.image }}
{{- include "aztec-network.image" . | nindent 10 }}
command:
- /bin/bash
- -c
Expand Down
5 changes: 2 additions & 3 deletions spartan/aztec-network/templates/prover-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ spec:
initContainers:
{{- include "aztec-network.serviceAddressSetupContainer" . | nindent 8 }}
- name: wait-for-prover-node
image: {{ .Values.images.aztec.image }}
{{- include "aztec-network.image" . | nindent 10 }}
command:
- /bin/bash
- -c
Expand All @@ -69,8 +69,7 @@ spec:
mountPath: /shared/config
containers:
- name: prover-agent
image: "{{ .Values.images.aztec.image }}"
imagePullPolicy: {{ .Values.images.aztec.pullPolicy }}
{{- include "aztec-network.image" . | nindent 10 }}
volumeMounts:
- name: config
mountPath: /shared/config
Expand Down
5 changes: 2 additions & 3 deletions spartan/aztec-network/templates/prover-broker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
initContainers:
{{- include "aztec-network.serviceAddressSetupContainer" . | nindent 8 }}
- name: wait-for-prover-node
image: {{ .Values.images.aztec.image }}
{{- include "aztec-network.image" . | nindent 10 }}
command:
- /bin/bash
- -c
Expand All @@ -51,8 +51,7 @@ spec:
mountPath: /shared/config
containers:
- name: prover-broker
image: "{{ .Values.images.aztec.image }}"
imagePullPolicy: {{ .Values.images.aztec.pullPolicy }}
{{- include "aztec-network.image" . | nindent 10 }}
volumeMounts:
- name: config
mountPath: /shared/config
Expand Down
8 changes: 3 additions & 5 deletions spartan/aztec-network/templates/prover-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
{{- include "aztec-network.serviceAddressSetupContainer" . | nindent 8 }}
{{- include "aztec-network.p2pSetupContainer" . | nindent 8 }}
- name: wait-for-services
image: {{ .Values.images.aztec.image }}
{{- include "aztec-network.image" . | nindent 10 }}
command:
- /bin/bash
- -c
Expand Down Expand Up @@ -71,8 +71,7 @@ spec:
value: "{{ .Values.proverNode.proverBroker.enabled }}"

- name: configure-prover-env
image: "{{ .Values.images.aztec.image }}"
imagePullPolicy: {{ .Values.images.aztec.pullPolicy }}
{{- include "aztec-network.image" . | nindent 10 }}
command:
- "/bin/bash"
- "-c"
Expand All @@ -90,8 +89,7 @@ spec:

containers:
- name: prover-node
image: "{{ .Values.images.aztec.image }}"
imagePullPolicy: {{ .Values.images.aztec.pullPolicy }}
{{- include "aztec-network.image" . | nindent 10 }}
command:
- "/bin/bash"
- "-c"
Expand Down
2 changes: 1 addition & 1 deletion spartan/aztec-network/templates/pxe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
{{- end }}
containers:
- name: pxe
image: "{{ .Values.images.aztec.image }}"
{{- include "aztec-network.image" . | nindent 10 }}
volumeMounts:
- name: config
mountPath: /shared/config
Expand Down
2 changes: 1 addition & 1 deletion spartan/aztec-network/templates/setup-l2-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
emptyDir: {}
containers:
- name: setup-l2-contracts
image: {{ .Values.images.aztec.image }}
{{- include "aztec-network.image" . | nindent 10 }}
volumeMounts:
- name: config
mountPath: /shared/config
Expand Down
2 changes: 1 addition & 1 deletion spartan/aztec-network/templates/transaction-bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ spec:
mountPath: /shared/config
containers:
- name: transaction-bot
image: "{{ .Values.images.aztec.image }}"
{{- include "aztec-network.image" . | nindent 10 }}
volumeMounts:
- name: config
mountPath: /shared/config
Expand Down
8 changes: 3 additions & 5 deletions spartan/aztec-network/templates/validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
{{- include "aztec-network.p2pSetupContainer" . | nindent 8 }}
{{- include "aztec-network.serviceAddressSetupContainer" . | nindent 8 }}
- name: wait-for-services
image: {{ .Values.images.aztec.image }}
{{- include "aztec-network.image" . | nindent 10 }}
command:
- /bin/bash
- -c
Expand Down Expand Up @@ -79,8 +79,7 @@ spec:
mountPath: /shared/config

- name: configure-validator-env
image: "{{ .Values.images.aztec.image }}"
imagePullPolicy: {{ .Values.images.aztec.pullPolicy }}
{{- include "aztec-network.image" . | nindent 10 }}
command:
- "/bin/bash"
- "-c"
Expand Down Expand Up @@ -108,8 +107,7 @@ spec:
fieldPath: metadata.name
containers:
- name: validator
image: "{{ .Values.images.aztec.image }}"
imagePullPolicy: {{ .Values.images.aztec.pullPolicy }}
{{- include "aztec-network.image" . | nindent 10 }}
command:
- "/bin/bash"
- "-c"
Expand Down

0 comments on commit c73c9ae

Please sign in to comment.