From 3179ad62a6b1565498d578b9ddd22e494e36e994 Mon Sep 17 00:00:00 2001 From: oap75 Date: Thu, 8 Feb 2024 09:02:36 +0200 Subject: [PATCH] feat: add validator application image to helpers template --- charts/rollups-node/templates/_helpers.tpl | 7 +++++++ charts/rollups-node/templates/deployment.yaml | 1 + 2 files changed, 8 insertions(+) diff --git a/charts/rollups-node/templates/_helpers.tpl b/charts/rollups-node/templates/_helpers.tpl index 0fa226a..4548319 100644 --- a/charts/rollups-node/templates/_helpers.tpl +++ b/charts/rollups-node/templates/_helpers.tpl @@ -95,6 +95,13 @@ Return the proper validator image name {{ include "images.image" (dict "imageRoot" .Values.validator.image "global" .Values.global) }} {{- end -}} +{{/* +Return the proper application image name +*/}} +{{- define "application.image" -}} +{{ include "images.image" (dict "imageRoot" .Values.validator.application.image "global" .Values.global) }} +{{- end -}} + {{/* Renders a value that contains template. Usage: diff --git a/charts/rollups-node/templates/deployment.yaml b/charts/rollups-node/templates/deployment.yaml index f814155..b3981f0 100644 --- a/charts/rollups-node/templates/deployment.yaml +++ b/charts/rollups-node/templates/deployment.yaml @@ -33,6 +33,7 @@ spec: initContainers: {{- if .Values.validator.initContainers }} {{- include "tplvalues.render" ( dict "value" .Values.validator.initContainers "context" $ ) | nindent 8 }} + image: {{ include "application.image" . }} {{- end }} containers: - name: rollups-node