helm / chart-testing-action

A GitHub Action to lint and test Helm charts
https://github.com/helm/chart-testing
Apache License 2.0
245 stars 71 forks source link

ct.yaml placed in root of the repository is not being picked #79

Closed prashant-shahi closed 1 year ago

prashant-shahi commented 2 years ago

Versions:

Run helm/chart-testing-action@v2.2.0
  with:
    version: v3.5.0
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.7.12/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.7.12/x64/lib

I had placed ct.yaml in the root of the project but it was not being picked up by ct. However, when I pass those same from the environment variables or pass config file in CLI using --config ct.yaml, it works.

cpanato commented 1 year ago

humm, looks like a bug in the chart-testing and not in the action

actually is not an issue, you need to pass the config if you have it, otherwise, it will be empty, see https://github.com/helm/chart-testing/blob/main/ct/cmd/root.go#L66 if is not defined it will not be loaded.

closing