multi-user/charts/api-serviceError: INSTALLATION FAILED: ConfigMapin version "v1" cannot be handled as a ConfigMap: json: cannot unmarshal bool into Go struct field ConfigMap.dataof type string
helm.go:84:
我的想法是将第一个作业的状态保存在ConfigMap中。定义ConfigMap的Helm与作业打包在一起,并且两者都与ConfigMap同时部署。: state <---- See below as to whether this should be included or not
该作业使用从ConfigMap设置的ENV变量运行:如果我没有在初始ConfigMap定义中声明ENV键,那么作业的第一次运行将失败,因为上面的MY_STATE定义找不到ConfigMap变量
一个是configmap,它工作得很好。但是,当我想要添加启用的部分时,我将得到错误消息。executing "base-helm-chart/templates/configmap.yaml" at <$config>: wrong type for value; expected string; got bool{{- if .Values.configMap.enabled }}kind: ConfigMap