Werk #19857 · Apr 23, 26
kube_pod_status: don't crash when an older status is still cached
After upgrading a Kubernetes-monitored site, the pod Status service
could become UNKNOWN with a traceback ending in KeyError: 'OOMKilled'
(or another status name). This happened when the persistent check state
still remembered a pod status whose name is no longer in the set the
check currently tracks.
The check now tolerates an unknown cached status instead of crashing; the affected pod simply continues with the currently observed status.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p1All Editions