我有一个 rancher-compose.yml 文件,在其中使用如下环境变量设置 upgrade_strategy.start_first 字段:
upgrade_strategy:
start_first: ${START_FIRST}
batch_size: 1
使用 rancher-compose CLI 运行时,出现以下错误:
ERRO[0000] Failed to open project origami-svcproxy: yaml: unmarshal errors:
line 28: cannot unmarshal !!str `false` into bool
在调试中运行时,我看到以下 yaml:
upgrade_strategy:
batch_size: 1
start_first: "false" # <-- notice the surrounding quotes, missing from the rest of the variable replacements
如何动态设置此字段?