System info:
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:
- Create a
kustomization.yaml in an empty folder with:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: demo
repo: http://example.com
- 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.
System info:
Describe the bug
Following #1045, when using
kube-linter lint .on a folder with akustomization.yamlthat useshelmChartsconfiguration, kube-linter fails while not displaying any error/warning in non-verbose mode.To Reproduce
Steps to reproduce the behaviour:
kustomization.yamlin an empty folder with:Sample YAML input
Expected behaviour
Possibility to enable helm.