From 4c8766e344ecc0e2bb865266891e649902ebaa31 Mon Sep 17 00:00:00 2001 From: Nicolas Ochem Date: Tue, 10 Oct 2023 10:11:04 -0700 Subject: [PATCH] add ability to pass attester profiles to DAL node --- charts/tezos/scripts/dal-node.sh | 3 +++ charts/tezos/templates/octez-dal-node.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/charts/tezos/scripts/dal-node.sh b/charts/tezos/scripts/dal-node.sh index 9de88fe07..721de67b1 100644 --- a/charts/tezos/scripts/dal-node.sh +++ b/charts/tezos/scripts/dal-node.sh @@ -10,6 +10,9 @@ extra_args="" if [ "${BOOTSTRAP_PROFILE}" == "true" ]; then extra_args="--bootstrap-profile" fi +if [ "${ATTESTER_PROFILES}" != "" ]; then + extra_args="${extra_args} --attester-profiles ${ATTESTER_PROFILES}" +fi if [ "${PUBLIC_ADDR}" != "" ]; then extra_args="${extra_args} --public-addr ${PUBLIC_ADDR}" fi diff --git a/charts/tezos/templates/octez-dal-node.yaml b/charts/tezos/templates/octez-dal-node.yaml index 49e3b4f54..458e5712a 100644 --- a/charts/tezos/templates/octez-dal-node.yaml +++ b/charts/tezos/templates/octez-dal-node.yaml @@ -56,6 +56,10 @@ spec: - name: BOOTSTRAP_PROFILE value: "true" {{- end }} +{{- if $v.attesterProfiles | default false }} + - name: ATTESTER_PROFILES + value: "{{ $v.attesterProfiles }}" +{{- end }} {{- if $v.publicAddr | default false }} - name: PUBLIC_ADDR value: "{{ $v.publicAddr }}"