Skip to content

Commit

Permalink
utils for DAL node
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Dec 11, 2023
1 parent bf0d4f6 commit 5147872
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions charts/tezos/templates/octez-dal-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,25 @@ spec:
labels:
app: dal-{{ $k }}
spec:
initContainers:
- image: {{ $.Values.tezos_k8s_images.utils }}
imagePullPolicy: Always
name: config-generator
args:
- config-generator
envFrom:
- configMapRef:
name: tezos-config
env:
- name: MY_POD_NAME
value: {{ $k }}
- name: MY_POD_TYPE
value: baker
volumeMounts:
- mountPath: /var/tezos
name: baker-volume
- mountPath: /etc/secret-volume
name: tezos-accounts
containers:
- name: octez-dal-node
image: "{{ $.Values.images.octez }}"
Expand Down
2 changes: 1 addition & 1 deletion mkchain/tqchain/mkchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def main():

dalNodes = {
f"{DAL_NODE_NAME}-{n}": {
"attesterProfile": "tretre",
"attesterProfiles": "tz1fqR2X7iQSGD6ntLLDDrpAWMCcp74D39ut",
"node_rpc_url": f"http://{L1_NODE_NAME}-0.{L1_NODE_NAME}:8732"
}
for n in range(args.dal_nodes)
Expand Down
2 changes: 2 additions & 0 deletions utils/config-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
MY_POD_CONFIG = OCTEZ_ROLLUP_NODES[MY_POD_NAME]
if MY_POD_TYPE == "baker":
MY_POD_CONFIG = OCTEZ_BAKERS[MY_POD_NAME]
if MY_POD_TYPE == "dal":
MY_POD_CONFIG = OCTEZ_BAKERS[MY_POD_NAME]

NETWORK_CONFIG = CHAIN_PARAMS["network"]

Expand Down

0 comments on commit 5147872

Please sign in to comment.