abahmed / kwatch

:eyes: monitor & detect crashes in your Kubernetes(K8s) cluster instantly
https://kwatch.dev
MIT License
960 stars 75 forks source link

ignoreContainerNames is not working #166

Closed adamw-linadm closed 1 year ago

adamw-linadm commented 1 year ago

Describe the bug ignoreContainerNames setting in configuration file is not working.

To Reproduce Use config with defined ignoreContainerNames eg.:

/ # cat /config/config.yaml 
maxRecentLogLines: 10
ignoreFailedGracefulShutdown: true
ignoreContainerNames:
  - article-extractor
alert:
  slack:
    webhook: https://hooks.slack.com/services/XXX

Expected behavior Don't send notification about ignored container

Actual behavior time="2022-11-15T13:58:52Z" level=info msg="sending event: {Name:article-extractor-57b7d64674-xl7wd Container:article-extractor Namespace:services Reason:CrashLoopBackOff Events:[2022-11-15 13:52:17 +0000 UTC] Pulled Container.(trimed)" Version/Commit 0.6.1

nporta-nep commented 1 year ago

I was just going to open an issue about the same. I tried configuring the parameter with different formats, but I keep getting alerts from the containers on the list.

adamw-linadm commented 1 year ago

Worked on 0.7.0!! time="2023-02-01T13:36:59Z" level=info msg="skip pod article-extractor as in container ignore list"