@@ -109,6 +109,7 @@ const (
109109 LocatorTypeE2ETest LocatorType = "E2ETest"
110110 LocatorTypeAPIServerShutdown LocatorType = "APIServerShutdown"
111111 LocatorTypeClusterVersion LocatorType = "ClusterVersion"
112+ LocatorTypeKind LocatorType = "Kind"
112113 LocatorTypeCloudMetrics LocatorType = "CloudMetrics"
113114)
114115
@@ -120,10 +121,12 @@ const (
120121 LocatorClusterOperatorKey LocatorKey = "clusteroperator"
121122 LocatorClusterVersionKey LocatorKey = "clusterversion"
122123 LocatorNamespaceKey LocatorKey = "namespace"
124+ LocatorDeploymentKey LocatorKey = "deployment"
123125 LocatorNodeKey LocatorKey = "node"
124126 LocatorEtcdMemberKey LocatorKey = "etcd-member"
125127 LocatorKindKey LocatorKey = "kind"
126128 LocatorNameKey LocatorKey = "name"
129+ LocatorHmsgKey LocatorKey = "hmsg"
127130 LocatorPodKey LocatorKey = "pod"
128131 LocatorUIDKey LocatorKey = "uid"
129132 LocatorMirrorUIDKey LocatorKey = "mirror-uid"
@@ -213,11 +216,16 @@ const (
213216 AnnotationContainerExitCode AnnotationKey = "code"
214217 AnnotationCause AnnotationKey = "cause"
215218 AnnotationConfig AnnotationKey = "config"
219+ AnnotationContainer AnnotationKey = "container"
220+ AnnotationImage AnnotationKey = "image"
221+ AnnotationInteresting AnnotationKey = "interesting"
222+ AnnotationCount AnnotationKey = "count"
216223 AnnotationNode AnnotationKey = "node"
217224 AnnotationEtcdLocalMember AnnotationKey = "local-member-id"
218225 AnnotationEtcdTerm AnnotationKey = "term"
219226 AnnotationEtcdLeader AnnotationKey = "leader"
220227 AnnotationPreviousEtcdLeader AnnotationKey = "prev-leader"
228+ AnnotationPathological AnnotationKey = "pathological"
221229 AnnotationConstructed AnnotationKey = "constructed"
222230 AnnotationPhase AnnotationKey = "phase"
223231 AnnotationIsStaticPod AnnotationKey = "mirrored"
@@ -264,6 +272,7 @@ const (
264272 SourceAPIServerShutdown IntervalSource = "APIServerShutdown"
265273 SourceDisruption IntervalSource = "Disruption"
266274 SourceE2ETest IntervalSource = "E2ETest"
275+ SourceKubeEvent IntervalSource = "KubeEvent"
267276 SourceNetworkManagerLog IntervalSource = "NetworkMangerLog"
268277 SourceNodeMonitor IntervalSource = "NodeMonitor"
269278 SourceSystemJournalScanner IntervalSource = "KubeletLogScanner"
@@ -522,6 +531,11 @@ func IsInE2ENamespace(eventInterval Interval) bool {
522531
523532func IsInNamespaces (namespaces sets.String ) EventIntervalMatchesFunc {
524533 return func (eventInterval Interval ) bool {
534+ // For new, structured locators:
535+ if ns , ok := eventInterval .StructuredLocator .Keys [LocatorNamespaceKey ]; ok {
536+ return namespaces .Has (ns )
537+ }
538+ // TODO: For legacy locators, can be removed soon
525539 ns := NamespaceFromLocator (eventInterval .Locator )
526540 return namespaces .Has (ns )
527541 }
0 commit comments