]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/k8sevents:sanitise kubernetes events 35684/head
authorPaul Cuzner <pcuzner@redhat.com>
Mon, 11 May 2020 21:22:07 +0000 (09:22 +1200)
committerNathan Cutler <ncutler@suse.com>
Sat, 20 Jun 2020 19:50:14 +0000 (21:50 +0200)
commit7fd898ccc5407b7aaed9022de16f2e1b0a2aa998
tree96cbd59732a01294b3590a09b8b4ef382a187782
parent38a201eef2ea88cf633e6213ebbbc5c3a3de9432
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>
(cherry picked from commit 48d1781ae2a7d4fcdd834fb3f3052c02a5b8bbc2)
src/pybind/mgr/k8sevents/module.py