Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pods without owner causes error #4

Open
REBELinBLUE opened this issue May 9, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@REBELinBLUE
Copy link

commented May 9, 2019

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 || []) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.