Skip to content

[BUG] Fails when Kustomize uses Helm #1162

@quentinus95

Description

@quentinus95

System info:

  • OS: Linux

Describe the bug
Following #1045, when using kube-linter lint . on a folder with a kustomization.yaml that uses helmCharts configuration, kube-linter fails while not displaying any error/warning in non-verbose mode.

To Reproduce
Steps to reproduce the behaviour:

  1. Create a kustomization.yaml in an empty folder with:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts: 
  - name: demo
    repo: http://example.com
  1. Run:
kube-linter lint  .
Warning: no valid objects found.
/kube-linter lint -v .
Warning: failed to load object from /app/example: rendering failed: error processing renderer "kustomize" (*kustomize.Renderer): error rendering kustomize path /app/example: failed to run kustomize for path "/app/example": failed to run kustomize for path "/app/example": kustomize run failed: trouble configuring builtin HelmChartInflationGenerator with config: `
name: demo
repo: http://example.com
`: must specify --enable-helm
Warning: no valid objects found.

Sample YAML input

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts: 
  - name: demo
    repo: http://example.com

Expected behaviour
Possibility to enable helm.

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