0

我尝试使用 --set 将值传递给 helmfile

 helmfile --file ./myfile.yaml sync --set tag=${TAG}

myfile.yaml
---

releases:
  - name: controll
    namespace: ns
    chart: {{ .Values.chart.path }}
    version: {{ .Values.version | default "" }}
    values:
      - image:
          repository: controller-repo
          tag: {{ .Values.agcm_tag }}
          pullPolicy: Never
      - values/anotherYaml.yaml

我有一个错误

in myfile.yaml: error during myfile.part.1 parsing: template: stringTemplate:14:25: executing "stringTemplate" at <.Values.tag>: map has no entry for key "tag"
4

1 回答 1

1

请注意,这里的替换从.Values根级别开始。

您要在这里替换的可能是agcm_tag

因此,您可以在此处尝试以下措辞:

helmfile --file ./myfile.yaml sync --set agcm_tag=${TAG}

掌舵文档

于 2021-12-02T03:12:38.827 回答