Skip to content

Commit

Permalink
add the accuser
Browse files Browse the repository at this point in the history
  • Loading branch information
elric1 committed Feb 8, 2022
1 parent d9452bd commit 8e6943f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions charts/tezos/templates/_containers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
1 change: 1 addition & 0 deletions charts/tezos/templates/nodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/tezos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8e6943f

Please sign in to comment.