fix(admin): handle admin.env as both list and map in deployment template
Some checks are pending
CI / Rust Lint & Check (push) Waiting to run
CI / Rust Tests (push) Waiting to run
CI / Frontend Lint & Type Check (push) Waiting to run
CI / Frontend Build (push) Blocked by required conditions

This commit is contained in:
ZhenYi 2026-04-19 23:21:53 +08:00
parent 82a928c96a
commit 9ed56668dc

View File

@ -63,10 +63,17 @@ spec:
name: {{ include "admin.fullname" . }}-secrets name: {{ include "admin.fullname" . }}-secrets
key: {{ .Values.admin.secretKeys.nextAuthSecret }} key: {{ .Values.admin.secretKeys.nextAuthSecret }}
{{- end }} {{- end }}
{{- if kindIs "slice" .Values.admin.env }}
{{- range .Values.admin.env }} {{- range .Values.admin.env }}
- name: {{ .name }} - name: {{ .name }}
value: {{ .value | quote }} value: {{ .value | quote }}
{{- end }} {{- end }}
{{- else if kindIs "map" .Values.admin.env }}
{{- range $k, $v := .Values.admin.env }}
- name: {{ $k }}
value: {{ $v | quote }}
{{- end }}
{{- end }}
livenessProbe: livenessProbe:
httpGet: httpGet:
path: {{ .Values.admin.livenessProbe.path }} path: {{ .Values.admin.livenessProbe.path }}