Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/abstract-node/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: abstract-node
description: External node for syncing and serving blockchain data for Abstract
version: 0.1.47
version: 0.1.48
type: application
icon: https://abstract-assets.abs.xyz/icons/light.png
keywords:
Expand All @@ -11,7 +11,7 @@ keywords:
home: https://abs.xyz
sources:
- https://github.com/matter-labs/zksync-era
appVersion: "f11180bd-1786191203"
appVersion: "9734bf2-1787057993929"

dependencies:
- name: common
Expand Down
13 changes: 13 additions & 0 deletions charts/abstract-node/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ Create the name of the service account to use
{{- end }}
{{- end }}

{{/*
External node image, optionally pinned by digest.
*/}}
{{- define "abstract-node.image" -}}
{{- $tag := .Values.image.tag | default .Chart.AppVersion -}}
{{- $image := printf "%s/%s:%s" .Values.image.registry .Values.image.repository $tag -}}
{{- with .Values.image.digest -}}
{{- printf "%s@%s" $image . -}}
{{- else -}}
{{- $image -}}
{{- end -}}
{{- end }}

{{/*
Render OpenTelemetry environment variables for the external node container.
*/}}
Expand Down
2 changes: 1 addition & 1 deletion charts/abstract-node/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
priorityClassName: {{ .Values.priorityClassName | quote }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ include "abstract-node.image" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if $supportsStopSignal }}
lifecycle:
Expand Down
4 changes: 2 additions & 2 deletions charts/abstract-node/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ spec:
{{- if .Values.consensus.enabled }}
initContainers:
- name: init-consensus-secrets
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ include "abstract-node.image" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- "/bin/sh"
Expand All @@ -82,7 +82,7 @@ spec:
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ include "abstract-node.image" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if $supportsStopSignal }}
lifecycle:
Expand Down
3 changes: 2 additions & 1 deletion charts/abstract-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ image:
registry: docker.io
repository: matterlabs/external-node
pullPolicy: IfNotPresent
tag: "f11180bd-1786191203"
tag: "9734bf2-1787057993929"
digest: "sha256:0bbcb2ffceca37f9f2b0d4e0f243b2fe636f4080103f62b50419f67a77d8f60a"

shutdownWrapper:
enabled: false
Expand Down
4 changes: 2 additions & 2 deletions docker/external-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ services:
# Generation of consensus secrets.
# The secrets are generated iff the secrets file doesn't already exist.
generate-secrets:
image: "matterlabs/external-node:${EN_VERSION:-f11180bd-1786191203}"
image: "matterlabs/external-node:${EN_VERSION:-9734bf2-1787057993929}@${EN_DIGEST:-sha256:0bbcb2ffceca37f9f2b0d4e0f243b2fe636f4080103f62b50419f67a77d8f60a}"
entrypoint:
[
"/configs/generate_secrets.sh",
Expand All @@ -61,7 +61,7 @@ services:
volumes:
- ./configs:/configs
external-node:
image: "matterlabs/external-node:${EN_VERSION:-f11180bd-1786191203}"
image: "matterlabs/external-node:${EN_VERSION:-9734bf2-1787057993929}@${EN_DIGEST:-sha256:0bbcb2ffceca37f9f2b0d4e0f243b2fe636f4080103f62b50419f67a77d8f60a}"
entrypoint: ["/usr/bin/entrypoint.sh"]
restart: always
depends_on:
Expand Down
Loading