]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/k8sevents:sanitise kubernetes events
authorPaul Cuzner <pcuzner@redhat.com>
Mon, 11 May 2020 21:22:07 +0000 (09:22 +1200)
committerPaul Cuzner <pcuzner@redhat.com>
Mon, 11 May 2020 21:22:07 +0000 (09:22 +1200)
commit48d1781ae2a7d4fcdd834fb3f3052c02a5b8bbc2
tree5416f5aab53a4b985569f76ec38e48a5dac46bba
parent7ad11b5baf24631e7df2a720afb5392424f3be9e
mgr/k8sevents:sanitise kubernetes events

Kubernetes can generate events without a timestamp
or an event count. When this occurs the k8sevents 'ls'
command fails due to None type values. This patch
sanitises the event received before adding to the
internal data structures to account for these
issues.

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
src/pybind/mgr/k8sevents/module.py