8000 Feature request: skip `values.yaml` yamllint when it is absent · Issue #748 · helm/chart-testing · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Feature request: skip values.yaml yamllint when it is absent #748
Open
@thiagowfx

Description

@thiagowfx

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0