Open
Description
Currently, ct lint
fails whenever values.yaml
is missing in a chart.
Sometimes there is simply no need to provide values.yaml
(e.g. when installing manifests that don't need to be configurable).
Expected: ct lint
should not fail when values.yaml
is absent.
Observed:
% ct lint
[...]
[Errno 2] No such file or directory: 'helm/mychart/values.yaml'
------------------------------------------------------------------------------------------------------------------------
✖︎ mychart => (version: "1.2.2", path: "helm/mychart") > failed waiting for process: exit status 255
------------------------------------------------------------------------------------------------------------------------
Error: failed linting charts: failed processing charts
failed linting charts: failed processing charts
When running with debug: true
, I see:
>>> yamllint --config-file .yamllint.yaml helm/mychart/Chart.yaml
>>> yamllint --config-file .yamllint.yaml helm/mychart/values.yaml
[Errno 2] No such file or directory: 'helm/mychart/values.yaml'
So the problem is that it attempts to run yamllint
in the non-existing values.yaml
.
I have validate-yaml: true
in my ct
config.
The current workaround is to create an empty values.yaml
file in the chart, just for the sake of pleasing ct lint
.
42F7
Metadata
Metadata
Assignees
Labels
No labels