-
Which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
Sonarqube version: 9.9 LTS
Scanner: 4.8.0.2856 -
How is SonarQube deployed: zip, Docker, Helm
Installed via zip file in a VM -
what are you trying to achieve
Be able to find errors in kubernetes manifests files using Kubernetes parsing failure rule. -
what have you tried so far to achieve this
I’ve used this simple yaml file for testing the accuracy of this kubernetes rule but it passed, i don’t know why since it has some flaws like repeated map keys and absence of “containers” required field.
So i just want to know how the kubernetes parsing works in sonarqube because i thought that it would be the same as kubeval or yamllint tools
deploy.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
label:
app: deploy1
name: deploy1
spec:
replicas: 1
selector:
matchLabels:
run: deploy1
strategy: {}
template:
spec:
spec:
container:
- images: nginx
name: container-1
ports:
- containerPort: 80
Best regards.