Skip to content

Commit

Permalink
fixup! feat: change templates based on new values.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
omidasadpour authored and endersonmaia committed Jan 31, 2024
1 parent 836429f commit 41e9dc9
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions charts/rollups-node/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ spec:
value: {{ quote $value }}
{{- end }}
{{- end }}
{{- if (or .Values.validator.config.CARTESI_AUTH_MNEMONIC .Values.validator.config.CARTESI_AUTH_MNEMONIC_FILE) }}
{{- if (.Values.validator.config.CARTESI_AUTH_MNEMONIC) }}
- name: CARTESI_AUTH_MNEMONIC_FILE
value: "/var/run/secrets/mnemonic/MNEMONIC"
value: {{ required "A valid .Values.validator.config.CARTESI_AUTH_MNEMONIC_FILE is required" .Values.validator.config.CARTESI_AUTH_MNEMONIC_FILE }}
- name: CARTESI_AUTH_MNEMONIC_ACCOUNT_INDEX
value: {{ .Values.validator.config.CARTESI_AUTH_MNEMONIC_ACCOUNT_INDEX }}
{{- end }}
Expand All @@ -96,23 +96,19 @@ spec:
{{- end }}
{{- end }}
volumeMounts:
{{- if (or .Values.validator.config.CARTESI_AUTH_MNEMONIC .Values.validator.config.CARTESI_AUTH_MNEMONIC_FILE) }}
{{- if (.Values.validator.config.CARTESI_AUTH_MNEMONIC) }}
- name: mnemonic
mountPath: /var/run/secrets/mnemonic
mountPath: {{ required "A valid .Values.validator.config.CARTESI_AUTH_MNEMONIC_FILE is required" .Values.validator.config.CARTESI_AUTH_MNEMONIC_FILE }}
readOnly: true
{{- end }}
{{- if .Values.validator.extraVolumeMounts }}
{{- include "tplvalues.render" ( dict "value" .Values.validator.extraVolumeMounts "context" $ ) | nindent 12 }}
{{- end }}
volumes:
{{- if (or .Values.validator.config.CARTESI_AUTH_MNEMONIC .Values.validator.config.CARTESI_AUTH_MNEMONIC_FILE) }}
{{- if (.Values.validator.config.CARTESI_AUTH_MNEMONIC) }}
- name: mnemonic
secret:
{{- if .Values.validator.config.CARTESI_AUTH_MNEMONIC }}
secretName: {{ include "validator.fullname" . }}-mnemonic
{{- else }}
secretName: {{ .Values.validator.config.CARTESI_AUTH_MNEMONIC_FILE }}
{{- end }}
{{- end }}
{{- if .Values.validator.extraVolumes }}
{{- include "tplvalues.render" ( dict "value" .Values.validator.extraVolumes "context" $ ) | nindent 8 }}
Expand Down

0 comments on commit 41e9dc9

Please sign in to comment.