Running the Helm Chart verification tool
In order to run the test, your chart structure should look like this :
1
.
2
└── src
3
├── Chart.yaml
4
├── README.md
5
├── templates
6
│ ├── deployment.yaml
7
│ ├── _helpers.tpl
8
│ ├── hpa.yaml
9
│ ├── ingress.yaml
10
│ ├── NOTES.txt
11
│ ├── serviceaccount.yaml
12
│ ├── service.yaml
13
│ └── tests
14
│ └── test-connection.yaml
15
├── values.schema.json
16
└── values.yaml
17
Copied!
Before running the chart-verifier, you will need to package your Helm chart with the following command:
1
helm package <helmchart folder>
Copied!
This will archive the Helm chart into a .tgz file
To run the full set of chart-verifier tests you will have 2 options:
  • Run it through the podman/docker command
  • Run the binary (Linux only)
I - Using Podman/Docker:
  1. 1.
    Run podman run --rm quay.io/redhat-certification/chart-verifier verify <chart URI>
  2. 2.
    The chart-uri is the location of the chart archive (path to a local directory or http(s) URI). The archive should be in .tgz format
II - Using the binary file:
  1. 1.
    Download and install the chart-verifier on your server
  2. 2.
    Run the following command : $ ./chart-verifier verify <chart-uri>
  3. 3.
    The chart-uri is the location of the chart archive on your server. The archive should be in .tgz format
III - Using Github Action
More information to come soon
The output of chart-verifier includes the tests executed and a PASS/FAIL result for each test. It will also indicate whether each test is mandatory or recommended for certification.
For more details and updates about the chart-verifier tool, please visit the Github documentation
Copy link