Helm Charts - this is a repo with multiple helm charts in folders under the root of the repo. I can’t give you our charts, but it seems clear any Helm chart template is going to cause these types of issues.
Thanks for the logs. I see these parse errors, which I believe you are speaking of:
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 89 source files to be analyzed
ERROR: Unable to parse file: file:///opt/atlassian/pipelines/agent/build/adminer/templates/service.yaml. Parse error at position 11:0
ERROR: Cannot parse 'adminer/templates/service.yaml': while scanning a simple key
in reader, line 10, column 1:
{{- if .Values.service.annotatio ...
^
could not find expected ':'
in reader, line 11, column 3:
annotations:
^
ERROR: Unable to parse file: file:///opt/atlassian/pipelines/agent/build/activemq/templates/service.yaml. Parse error at position 7:0
ERROR: Cannot parse 'activemq/templates/service.yaml': while scanning a simple key
in reader, line 6, column 1:
{{ include "activemq.labels" . | ...
^
could not find expected ':'
in reader, line 7, column 1:
spec:
^
If so, then as of today (2 Aug 2022), we do not yet support scanning of Helm chart yaml files, only Kubernetes files. Apologies for the confusion.
Helm file analysis is in our backlog so we hope to implement it soon.
A fixed version of SonarIaC is released on SonarCloud. The problem should be fixed. Thanks for your contribution. Stay tuned for Helm Chart support on SonarCloud.