Skip to content

Commit 168686a

Browse files
authored
Merge pull request kubernetes#90314 from tangcong/fix-kubelet-staticcheck-err
fix kubelet stats staticcheck error
2 parents 363bb39 + 2b984b3 commit 168686a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/kubelet/stats/cri_stats_provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ func (p *criStatsProvider) cleanupOutdatedCaches() {
700700
for k, v := range p.cpuUsageCache {
701701
if v == nil {
702702
delete(p.cpuUsageCache, k)
703+
continue
703704
}
704705

705706
if time.Since(time.Unix(0, v.stats.Timestamp)) > defaultCachePeriod {

0 commit comments

Comments
 (0)