]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/k8sevents:sanitise kubernetes events 35563/head
authorPaul Cuzner <pcuzner@redhat.com>
Mon, 11 May 2020 21:22:07 +0000 (09:22 +1200)
committerPaul Cuzner <pcuzner@redhat.com>
Mon, 15 Jun 2020 02:44:16 +0000 (14:44 +1200)
commit69d340e2853c5ad4b4c1446948952aba65430e51
tree355b143b66e818d097876862c80c9ca26f0b727d
parentc3e2c3dd4bba0a96ac7dd6fbe6619db303139bfa
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