下面是我正在使用的Skaffold yaml:
apiVersion: skaffold/v1
kind: Config
metadata:
name: myapp-api
build:
artifacts:
- image: elodie/myapp-api
context: .
docker:
dockerfile: Dockerfile
deploy:
helm:
releases:
- name: elodie-api
chartPath: bitnami/node
remote: true
setValues:
command: ['/bin/bash', '-ec', 'npm start']
image.repository: elodie/myapp-api
service.type: LoadBalancer
getAppFromExternalRepository: false
applicationPort: 6666
setValueTemplates:
image.tag: "{{ .DIGEST_HEX }}"当我添加命令config时,我得到了parsing skaffold config: error parsing skaffold configuration file: unable to parse config: yaml: unmarshal errors: line 16: cannot unmarshal !!seq into string错误,但是值是直接从bitnami提供的values.yaml中取出的。
为什么我会得到这个错误,有什么想法吗?
发布于 2021-07-15 23:12:13
setValues被转换为helm的--set参数序列。因此,` `setValues:仅支持字符串值。
Helm确实支持represent other structures with --set的方式。看起来你应该能够使用:
setValues:
command: "{/bin/bash, -ec, npm start}"https://stackoverflow.com/questions/68395376
复制相似问题