Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/code/plugin/in_kube_podinventory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def parse_and_emit_records(podInventory, serviceList)
#podStatus
# the below is for accounting 'NodeLost' scenario, where-in the pod(s) in the lost node is still being reported as running
podReadyCondition = true
if !items['status']['reason'].nil? && items['status']['reason'] == "NodeLost"
if !items['status']['reason'].nil? && items['status']['reason'] == "NodeLost" && !items['status']['conditions'].nil?
items['status']['conditions'].each do |condition|
if condition['type'] == "Ready" && condition['status'] == "False"
podReadyCondition = false
Expand Down