kwatch
kwatch copied to clipboard
Events and Logs section selector
Hi team,
I am enjoying your tool but Events and Logs section can be optional and enabled via boolean. Looks great but take a lot of space on slack message, it's hard to read multiple notifications without real logs but with existing mandatory section from template
2.) For events output some simple grep phrase can be implement as optional parameter as bellow
rafalklimczak@192 kwatch % cat example
[2022-12-14 01:19:02 +0000 UTC] Scheduled Successfully assigned test/nginx-test-9fb6dc769-lvjmf to ip-10-1-6-
[2022-12-14 01:20:29 +0000 UTC] Pulling Pulling image "nginx:testtest"
[2022-12-14 01:20:29 +0000 UTC] Failed Failed to pull image "nginx:testtest": rpc error: code = Unknown desc = Error response from daemon: manifest for nginx:testtest not found: manifest unknown: manifest unknown
[2022-12-14 01:20:29 +0000 UTC] Failed Error: ErrImagePull
[2022-12-14 01:24:16 +0000 UTC] BackOff Back-off pulling image "nginx:testtest"
[2022-12-14 01:20:41 +0000 UTC] Failed Error: ImagePullBackOff
rafalklimczak@192 kwatch % grep -i -A1 "failed error" example
[2022-12-14 01:20:29 +0000 UTC] Failed Error: ErrImagePull
[2022-12-14 01:24:16 +0000 UTC] BackOff Back-off pulling image "nginx:testtest"
[2022-12-14 01:20:41 +0000 UTC] Failed Error: ImagePullBackOff
Regards RK