【发布时间】:2021-12-08 18:02:24
【问题描述】:
我有 helmfile
releases:
- name: controller
values:
- values/valuedata.yaml
hooks:
{{ toYaml .Values.hooks }}
带有值的文件
hooks:
- events: [ "presync" ]
showlogs: true
command: "bash"
args: [ "args"]
我想从值中传递钩子,我该怎么做? 我尝试了很多方法,我得到了一个错误 这是命令
helmfile --file ./myhelmfile.yaml sync
failed to read myhelmfile.yaml: reading document at index 1: yaml: line 26: did not find expected '-' indicator
【问题讨论】:
标签: kubernetes-helm helmfile helm3