Pods without owner causes error
REBELinBLUE opened this issue · 1 comments
REBELinBLUE commented
For example in the kube-system
namespace etcd-master
isn't part of a ReplicaSet, DaemonSet or StatefulSet so you get an error
TypeError: Cannot read property '0' of undefined
caused by
let owner = pod.metadata.ownerReferences[0];
It looks like further down you do check if ownerReferences is set before using it
for(let ownerRef of pod.metadata.ownerReferences || []) {