0

I have created a Helmfile as this:

templates:
   test: &test
    chart: charts/test1
    namespace: ibm-mq
    missingFileHandler: Error
    values:
      - name: '{{`{{ .Release.Name }}`}}'

and under Charts folder I have this value file:

name: ""

and unser templates folder I have this configMap file:

apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ .Values.name  }}-configmap
data:
  # property-like keys; each key maps to a simple value
  player_initial_lives: "3"
  ui_properties_file_name: "user-interface.properties"

When I run the pipeline I get this error: Error: Failed to render chart: exit status 1: Error: YAML parse error on test/templates/configMap.yaml: error converting YAML to JSON: yaml: line 3: did not find expected key. looks like the Release.Name not exposed in correct way even I get this code form HelmFile Githum example.

Anas Almohana
  • 27
  • 2
  • 4
  • In the Helm chart itself you can access `.Release.Name`; is that more straightforward than trying to pass the same name as a value via Helmfile? – David Maze Oct 10 '22 at 11:32

0 Answers0