Skip to content

[BUG] kube-linter fails but helm template doesn't #1111

@mreiche

Description

@mreiche

System info:

  • OS: MacOSX

Describe the bug

When linting a complete helm chart like:

kube-linter lint -v ./path/to/chart

I get a response like:

failed to render: template: my-chart/templates/template.yaml:1:4
...
at <.Values.global.property>: nil pointer evaluating interface {}.property

But rendering the chart like:

helm template ./path/to/chart

is just fine.

To Reproduce

I did not find a chart public to reproduce. But it must be a Chart, that has a templates Chart dependency.

Expected behavior
kube-linter should be able to render the chart or provides a stdin feature like:

helm template ./path/to/chart | kube-linter lint

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