Skip to content

Commit

Permalink
Merge pull request #4102 from cswangzheng/github
Browse files Browse the repository at this point in the history
add init container when vpa recommender init from history provider
  • Loading branch information
k8s-ci-robot authored Aug 30, 2021
2 parents a498045 + 49992e7 commit 7a123ea
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 7a123ea

Please sign in to comment.