helm lint erroring for [ERROR] templates/serviceaccount.yaml: unable to parse YAML: invalid Yaml document separator: apiVersion: rbac.authorization.k8s.io/v1 #52638
Open
Description
Helm Chart Version
1.4.0
What step the error happened?
On deploy
Relevant information
problem statement:
helm lint ./airbyte
for airbyte helm chart 1.4.0 causing the below issue
[ERROR] templates/serviceaccount.yaml: unable to parse YAML: invalid Yaml document separator: apiVersion: rbac.authorization.k8s.io/v1
Observations:
compared to previous release 1.2.0 there is a particular code block in templates/serviceaccount.yaml causing issue
{{- if not (default false .Values.serviceAccount.denyNodeViewerRole) -}}
proposed solution:
{{ if not (default false .Values.serviceAccount.denyNodeViewerRole) }}
get rid of -
its working fine
whats weird:
helm template
command running fine without any issues
Relevant log output
helm lint ./airbyte
==> Linting ./airbyte
[INFO] Chart.yaml: icon is recommended
[WARNING] templates/env-configmap.yaml: document starts with an illegal indent: " # default to empty dict if airbyteYml is undefined", which may cause parsing problems
[ERROR] templates/serviceaccount.yaml: unable to parse YAML: invalid Yaml document separator: apiVersion: rbac.authorization.k8s.io/v1