Skip to content

Commit

Permalink
feat: add validator application image to helpers template
Browse files Browse the repository at this point in the history
  • Loading branch information
omidasadpour committed Feb 8, 2024
1 parent fa3cf5c commit 3179ad6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/rollups-node/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions charts/rollups-node/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3179ad6

Please sign in to comment.