Repository navigation
fix(k8sevent): link container fieldPath and source.host events to Container and Node timelines - #1197
Merged
Merged
Conversation
…tainer and Node timelines
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
October 29, 2026 08:19
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds extraction of the 'fieldPath' from Kubernetes events to map pod events to their specific container timelines (including standard, init, and ephemeral containers). It also maps events with a 'SourceHost' to their corresponding node timelines. The review feedback suggests optimizing the node timeline mapping to avoid redundant path resolution and allocations when the event is already a node event.
Merged
via the queue into
GoogleCloudPlatform:main
with commit Oct 29, 2026
3df3a10
17 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1196
Summary
Kubernetes Event logs (
k8s_event) emitted bykubeletfor container lifecycle and health probes (Pulling,Pulled,Created,Started,Unhealthy,Killing,BackOff) specify the target container injsonPayload.involvedObject.fieldPath(spec.containers{<name>},spec.initContainers{<name>}, orspec.ephemeralContainers{<name>}) and the reporting node injsonPayload.source.host, but were previously only mapped to the parentPodtimeline.This change extracts
jsonPayload.involvedObject.fieldPathintoKubernetesEventFieldSet.FieldPathand updatesmapK8sEventLogto:fieldPathto the corresponding child[container]timeline (k8saudit.MustK8sContainerTimeline).source.hostto thecore/v1#node#cluster-scope#<source-host>timeline.