Skip to content

Commit

Permalink
Add support of resource specification for both rollup and evm
Browse files Browse the repository at this point in the history
  • Loading branch information
puppetninja committed Jul 30, 2024
1 parent 9c7ce3a commit 8b32e34
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion charts/tezos/templates/octez-rollup-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ spec:
{{- $cleanKey := regexReplaceAll "[0-9]+$" $key "" }}
{{ $cleanKey }}:{{ $value }}
{{- end }}
{{- if $v.resources }}
{{- with $v.resources }}
resources:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- end }}
{{- if $v.evm }}
- name: octez-evm-{{ $v.evm.mode }}
image: "{{ $v.evm.image.name | default $.Values.images.octez }}"
Expand Down Expand Up @@ -111,7 +117,13 @@ spec:
- name: EVM_NODE_ENDPOINT
value: {{ $v.evm.evm_endpoint }}
{{- end }}
{{ end }}
{{- if $v.evm.resources }}
{{- with $v.evm.resources }}
resources:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- end }}
{{- end }}
initContainers:
- name: snapshot-downloader
image: "{{ $.Values.tezos_k8s_images.utils }}"
Expand Down

0 comments on commit 8b32e34

Please sign in to comment.