【问题标题】:Error converting YAML to JSON: yaml: invalid map key: map[interface {}]interface {}{"if .Values.configmap.enabled":interface {}(nil)} [kubeval] linterError converting YAML to JSON: yaml: invalid map key: map[interface {}]interface {}{\"if .Values.configmap.enabled\":interface {}(nil)} [kubeval] linter
【发布时间】:2022-12-01 23:16:33
【问题描述】:

`{{- if .Values.configmap.enabled }}

apiVersion: v1

kind: ConfigMap

metadata:

name: {{ template "fullname" . }}

namespace: {{ .Values.namespace }}

data:

{{ toYaml $.Values.configmap.data | indent 2 }}

{{- end }}`

【问题讨论】:

  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.

标签: yaml


【解决方案1】:

make sure that there must be space after/before curly brackets namespace: {{ .Values.namespace }}

【讨论】:

    猜你喜欢
    • 2015-01-14
    • 2018-08-05
    • 2017-01-07
    • 2016-08-06
    • 2017-07-13
    • 2021-08-30
    • 2019-01-05
    • 2021-06-11
    • 1970-01-01
    相关资源
    最近更新 更多