diff --git a/spartan/aztec-node/templates/_pod-template.yaml b/spartan/aztec-node/templates/_pod-template.yaml index 7c6bf0bbcf60..0b43402800aa 100644 --- a/spartan/aztec-node/templates/_pod-template.yaml +++ b/spartan/aztec-node/templates/_pod-template.yaml @@ -145,6 +145,20 @@ spec: - secretRef: name: {{ include "chart.fullname" . }}-env {{- end }} + {{- range .Values.node.envFrom.configMaps }} + - configMapRef: + name: {{ tpl .name $ | quote }} + {{- if hasKey . "optional" }} + optional: {{ .optional }} + {{- end }} + {{- end }} + {{- range .Values.node.envFrom.secrets }} + - secretRef: + name: {{ tpl .name $ | quote }} + {{- if hasKey . "optional" }} + optional: {{ .optional }} + {{- end }} + {{- end }} env: - name: POD_IP valueFrom: diff --git a/spartan/aztec-node/templates/extra-objects.yaml b/spartan/aztec-node/templates/extra-objects.yaml new file mode 100644 index 000000000000..b058f886db65 --- /dev/null +++ b/spartan/aztec-node/templates/extra-objects.yaml @@ -0,0 +1,4 @@ +{{- range .Values.extraObjects }} +--- +{{ tpl (toYaml .) $ }} +{{- end }} diff --git a/spartan/aztec-node/values.yaml b/spartan/aztec-node/values.yaml index c5a0ed7ce1b8..43bd3c883a26 100644 --- a/spartan/aztec-node/values.yaml +++ b/spartan/aztec-node/values.yaml @@ -88,6 +88,8 @@ node: envFrom: configMapEnabled: false secretEnabled: false + configMaps: [] + secrets: [] configMap: envEnabled: false @@ -251,3 +253,6 @@ serviceAccount: name: "" # -- Annotations for the service account annotations: {} + +# -- Additional Kubernetes objects to render with this chart. +extraObjects: []