Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions source/plugins/ruby/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,7 @@ class Constants
TELEMETRY_FLUSH_INTERVAL_IN_MINUTES = 10
KUBE_STATE_TELEMETRY_FLUSH_INTERVAL_IN_MINUTES = 15
MDM_TIME_SERIES_FLUSHED_IN_LAST_HOUR = "MdmTimeSeriesFlushedInLastHour"

#Pod Statuses
POD_STATUS_TERMINATING = "Terminating"
end
3 changes: 3 additions & 0 deletions source/plugins/ruby/in_kube_podinventory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ def parse_and_emit_records(podInventory, serviceList, continuationToken, batchTi

if podReadyCondition == false
record["PodStatus"] = "Unknown"
# ICM - https://portal.microsofticm.com/imp/v3/incidents/details/187091803/home
elsif !items["metadata"]["deletionTimestamp"].nil? && !items["metadata"]["deletionTimestamp"].empty?
record["PodStatus"] = Constants::POD_STATUS_TERMINATING
else
record["PodStatus"] = items["status"]["phase"]
end
Expand Down