chart-testing-action icon indicating copy to clipboard operation
chart-testing-action copied to clipboard

ct.yaml in workdir overrides "config:"

Open smlx opened this issue 5 years ago • 2 comments

I have a ct.yaml in the root of my repo and want to override this for a particular step. I tried this:

    - name: Run chart-testing (lint)
      id: lint
      uses: helm/[email protected]
      with:
        command: lint
        config: test-suite.ct.yaml

This means:

  • test-suite.ct.yaml file is mounted to /etc/ct/ct.yaml inside the container
  • /workdir inside the container contains the ct.yaml from the root of my repo

Due to the precedence rules of chart-testing config files the /workdir/ct.yaml is used instead of /etc/ct/ct.yaml. This was surprising to me.

It seems like reasonable behaviour once I understood what's going on, but it's something of a gotcha. Would you accept a PR documenting this behaviour in the README?

smlx avatar Oct 01 '20 01:10 smlx

Forgot to mention the workaround: If you need to have multiple ct.yaml configuration files, name them something other than /ct.yaml, and specify them explicitly for each step.

smlx avatar Oct 01 '20 02:10 smlx

Can you test with v2.0.0? It should avoid this problem altogether.

davidkarlsen avatar Nov 13 '20 00:11 davidkarlsen

closing, no response from the submitter

cpanato avatar Sep 27 '22 12:09 cpanato