hi
we are hitting the same issue that was reported last year by some on SONARIAC and described in [SONARIAC-435] - Jira .
(i.e. Scan fails on IaC kubernetes sensor)
We are running the latest LTS version (9.9).
error snipset:
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=35ms
INFO: Sensor IaC Kubernetes Sensor [iac]
INFO: 4 source files to be analyzed
ERROR: Unable to parse file: file:///usr/src/charts/XXXX-backend/templates/ingress.yaml. Parse error at position 1:0
ERROR: Cannot parse 'charts/XXXX-backend/templates/ingress.yaml': while parsing a flow node
in reader, line 1, column 3:
{{- if .Values.ingress.enabled -}}
^
expected the node content, but found '-'
in reader, line 1, column 3:
{{- if .Values.ingress.enabled -}}
^
ERROR: Unable to parse file: file:///usr/src/charts/XXXXX-backend/templates/deployment.yaml. Parse error at position 80:0
ERROR: Cannot parse 'charts/XXXXX-backend/templates/deployment.yaml': while parsing a flow node
in reader, line 80, column 15:
{{- toYaml .Values.resources | nin ...
^
expected the node content, but found '-'
in reader, line 80, column 15:
{{- toYaml .Values.resources | nin ...
^
INFO: 4/4 source files have been analyzed
INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=70ms
INFO: Sensor Ansible Lint Sensor [ansible]