我正在尝试用值填充我的部署并出现错误:
YAML parse error on helm-general/templates/deployment.yaml: error converting YAML to JSON: yaml: line 46: mapping values are not allowed in this context
我的 values.yaml
env:
LIMESURVEY_DB_HOST:
value: "host.com"
LIMESURVEY_DB_PASSWORD:
valueFrom:
secretKeyRef:
name: limesurvey-pass
key: pass
部署.yaml
env:
{{- range $k, $v := .Values.env }}
- name: {{ $k }}
{{- $v | toYaml | indent 7 }}
{{- end }}