You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/ubuntu/.linuxbrew/bin/kube-linter lint .
example/templates/service.yml: (object: default/example /v1, Kind=Service) no pods found matching service labels (map[app:example]) (check: dangling-service, remediation: Make sure your service's selector correctly matches the labels on one of your deployments.)
Error: found 1 lint errors
thank you for your submission. This is a legitimate bug in kube-linter caused by an incorrect namespace matching logic. You should find that specifying namespace: default within the spec.template.metadata of your deployment will serve as a workaround to make the chart pass linting. However, this is not required by K8s, so will need to be fixed.
Describe the bug
Kubelinter miss interprets helm charts service matched labels in deployments.
To Reproduce
Steps to reproduce the behavior:
brew install kube-linter
/home/ubuntu/.linuxbrew/bin/kube-linter lint .
Expected behavior
No errors to appear regarding a dangling service
Screenshots
helm template .
of the example showing service label exists inside deploymentError:
Please let me know if i am missing anything.
helm_chart_example.zip
The text was updated successfully, but these errors were encountered: