Repository navigation
feat(k8sevent): discover node names from Kubernetes Event logs - #1176
Merged
Merged
Conversation
K53
requested review from
RyuSA,
jyane,
kkuchima,
kyasbal and
renamoo
as code owners
October 24, 2026 17:18
Contributor
There was a problem hiding this comment.
Code Review
This pull request implements a new discovery task, nodeNameDiscoveryTask, to extract node names from Kubernetes Event logs via the jsonPayload.source.host field. The KubernetesEventFieldSet struct and its extractor were updated to support this new field, and comprehensive unit tests were added for both the extractor changes and the new discovery task. Since there are no review comments, I have no feedback to provide.
kyasbal
requested changes
Oct 25, 2026
Comment on lines
+93
to
+97
| slices.Sort(result) | ||
| slices.Sort(tc.want) | ||
| if diff := cmp.Diff(tc.want, result); diff != "" { | ||
| t.Errorf("result mismatch (-want +got):\n%s", diff) | ||
| } |
Member
There was a problem hiding this comment.
Instead of sorting results and tc.want, it should use cmpopts.SortSlices.
K53
force-pushed
the
push-zswrprzsprvq
branch
from
October 26, 2026 06:26
429d431 to
e12070e
Compare
K53
force-pushed
the
push-zswrprzsprvq
branch
from
October 26, 2026 07:51
e12070e to
2d23853
Compare
Merged
via the queue into
GoogleCloudPlatform:main
with commit Oct 26, 2026
50c5ba5
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.
Summary
Extracts node names from
jsonPayload.source.hostin Kubernetes Event logs and registers them with the node name discovery inventory (TagNodeNameDiscovery).Motivation
Previously, node name discovery did not inspect Kubernetes Event logs. When node creation audit logs fall outside the inspection time window, nodes that emit Kubernetes Events (recorded in
jsonPayload.source.host) could be missed by the node name inventory used by downstream node-related log queries.