diff --git a/charts/tezos/templates/_containers.tpl b/charts/tezos/templates/_containers.tpl index 6366e3088..a61c7fb4e 100644 --- a/charts/tezos/templates/_containers.tpl +++ b/charts/tezos/templates/_containers.tpl @@ -250,6 +250,22 @@ Also start endorser for protocols that need it. {{- end }} +{{- define "tezos.container.accusers" }} +{{- if has "accuser" $.node_vals.runs }} +{{ $node_vals_images := $.node_vals.images | default dict }} +{{- range .Values.protocols }} +- name: accuser-{{ lower .command }} + image: "{{ or $node_vals_images.octez $.Values.images.octez }}" + imagePullPolicy: IfNotPresent + command: + - /usr/local/bin/tezos-accuser-{{ .command }} + args: + - run +{{- end }} +{{- end }} +{{- end }} + + {{- define "tezos.container.logger" }} {{- if has "logger" $.node_vals.runs }} - image: "{{ $.Values.tezos_k8s_images.utils }}" diff --git a/charts/tezos/templates/nodes.yaml b/charts/tezos/templates/nodes.yaml index edd50332c..df6c1918c 100644 --- a/charts/tezos/templates/nodes.yaml +++ b/charts/tezos/templates/nodes.yaml @@ -29,6 +29,7 @@ spec: containers: {{- include "tezos.container.node" $ | indent 8 }} {{- include "tezos.container.tezedge" $ | indent 8 }} + {{- include "tezos.container.accusers" $ | indent 8 }} {{- include "tezos.container.bakers" $ | indent 8 }} {{- include "tezos.container.logger" $ | indent 8 }} {{- include "tezos.container.metrics" $ | indent 8 }} diff --git a/charts/tezos/values.yaml b/charts/tezos/values.yaml index 63c47a3f1..d2d1b0c0a 100644 --- a/charts/tezos/values.yaml +++ b/charts/tezos/values.yaml @@ -84,7 +84,7 @@ accounts: {} ## field up above. ## - "runs": A list of containers to run. A tezos node implementation is required. ## Options being "octez_node" or "tezedge_node". Other optional -## containers are "baker", "logger", and "metrics". +## containers are "accuser", "baker", "logger", and "metrics". ## - "local_storage": use local storage instead of a volume. The storage will be ## wiped when the node restarts for any reason. Useful when ## faster IO is desired. Defaults to false.