Skip to content

Commit

Permalink
Make container events belong to pod
Browse files Browse the repository at this point in the history
  • Loading branch information
Ari Zellner committed Dec 3, 2017
1 parent f58659b commit 67d0116
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def extract_event_data(event)
when 'Pod'
/^spec.containers{(?<container_name>.*)}$/ =~ event_data[:fieldpath]
unless container_name.nil?
event_type_prefix = "CONTAINER"
event_data[:container_name] = container_name
event_data[:reason] = "Container" + event_data[:reason] # Failed ~> ContainerFailed
end
event_data[:container_group_name] = event_data[:name]
event_data[:container_namespace] = event_data[:namespace]
Expand Down

0 comments on commit 67d0116

Please sign in to comment.