Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error converting Release.Name #2159

Open
anasmohana opened this issue Sep 30, 2022 · 2 comments
Open

error converting Release.Name #2159

anasmohana opened this issue Sep 30, 2022 · 2 comments

Comments

@anasmohana
Copy link

anasmohana commented Sep 30, 2022

I have created a Helmfile as this:
helmfile.yaml

environments:
  sit:
    values: 
    - env: sit

templates: 
  test: &test
    chart: charts/test1
    namespace: ibm-mq
    missingFileHandler: Error
    values:
      - name: {{ .Values.env }}-{{`{{ .Release.Name }}`}}
          
releases:
  - name: test-temp
    <<: *test

and under the charts folder I have this values file:
values.yaml

name: ""

and under templates folder I have this configMap file:
configMap.yaml

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: ConfigMap "sit-{{ .Release.Name }}-configmap" is invalid: metadata.name: Invalid value: "sit-{{ .Release.Name }}-configmap": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is 'a-z0-9?(.a-z0-9?)*')

looks like the Release.Name not exposed in correct way even I get this code form your example.

@anasmohana anasmohana changed the title error converting YAML to JSON: yaml: line 3: did not find expected key error convertingRelaeas.Name Sep 30, 2022
@anasmohana anasmohana changed the title error convertingRelaeas.Name error converting Release.Name Sep 30, 2022
@yxxhero
Copy link
Contributor

yxxhero commented Sep 30, 2022

@anasmohana please see #2148

@anasmohana
Copy link
Author

moved to helmfile/helmfile#402

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants