Skip to content

Commit 1a0fb2f

Browse files
authored
chore: required aztecImage values (#19998)
Require that both `aztecImage.repository` and `aztecImage.tag` be set when installing the aztec-node chart.
2 parents b729c75 + b5e030b commit 1a0fb2f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spartan/aztec-node/templates/_pod-template.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{{- define "chart.podTemplate" }}
2+
{{- $repo := .Values.global.aztecImage.repository | required ".Values.global.aztecImage.repository is required" }}
3+
{{- $tag := .Values.global.aztecImage.tag | required ".Values.global.aztecImage.tag is required" }}
4+
{{- $image := printf "%s:%s" $repo $tag }}
25
metadata:
36
labels:
47
{{- include "chart.selectorLabels" . | nindent 4 }}
@@ -71,7 +74,7 @@ spec:
7174
{{- end }}
7275
containers:
7376
- name: aztec
74-
image: "{{ .Values.global.aztecImage.repository }}:{{ .Values.global.aztecImage.tag | default .Chart.AppVersion }}"
77+
image: {{ $image }}
7578
imagePullPolicy: {{ .Values.global.aztecImage.pullPolicy }}
7679
command:
7780
- /bin/bash

0 commit comments

Comments
 (0)