Skip to content

Commit

Permalink
add container when init from history provider
Browse files Browse the repository at this point in the history
  • Loading branch information
cswangzheng authored and zwang7 committed May 26, 2021
1 parent fe5419d commit 49992e7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ func (feeder *clusterStateFeeder) InitFromHistoryProvider(historyProvider histor
PodID: podID,
ContainerName: containerName,
}
if err = feeder.clusterState.AddOrUpdateContainer(containerID, nil); err != nil {
klog.Warningf("Failed to add container %+v. Reason: %+v", containerID, err)
}
klog.V(4).Infof("Adding %d samples for container %v", len(sampleList), containerID)
for _, sample := range sampleList {
if err := feeder.clusterState.AddSample(
Expand Down

0 comments on commit 49992e7

Please sign in to comment.