- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getPodVolumeStats (0.71 sec)
-
pkg/kubelet/server/stats/fs_resource_analyzer.go
} } // Update the cache reference s.cachedVolumeStats.Store(newCache) } // GetPodVolumeStats returns the PodVolumeStats for a given pod. Results are looked up from a cache that // is eagerly populated in the background, and never calculated on the fly. func (s *fsResourceAnalyzer) GetPodVolumeStats(uid types.UID) (PodVolumeStats, bool) { cache := s.cachedVolumeStats.Load().(statCache) statCalc, found := cache[uid]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 09 16:16:37 UTC 2021 - 3.3K bytes - Viewed (0) -
pkg/kubelet/stats/cadvisor_stats_provider_test.go
mockRuntime := containertest.NewMockRuntime(mockCtrl) ephemeralVolumes := []statsapi.VolumeStats{getPodVolumeStats(seedEphemeralVolume1, "ephemeralVolume1"), getPodVolumeStats(seedEphemeralVolume2, "ephemeralVolume2")} persistentVolumes := []statsapi.VolumeStats{getPodVolumeStats(seedPersistentVolume1, "persistentVolume1"), getPodVolumeStats(seedPersistentVolume2, "persistentVolume2")} volumeStats := serverstats.PodVolumeStats{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 30.2K bytes - Viewed (0) -
pkg/kubelet/stats/provider_test.go
Capacity: uint64(seed + offsetFsCapacity), Available: uint64(seed + offsetFsAvailable), Usage: uint64(seed + offsetFsUsage), Inodes: &inodes, InodesFree: &inodesFree, } } func getPodVolumeStats(seed int, volumeName string) statsapi.VolumeStats { availableBytes := uint64(seed + offsetFsAvailable) capacityBytes := uint64(seed + offsetFsCapacity) usedBytes := uint64(seed + offsetFsUsage)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 20K bytes - Viewed (0) -
pkg/kubelet/stats/helper.go
podNs := s.PodRef.Namespace podName := s.PodRef.Name podUID := types.UID(s.PodRef.UID) var ephemeralStats []statsapi.VolumeStats if vstats, found := resourceAnalyzer.GetPodVolumeStats(podUID); found { ephemeralStats = make([]statsapi.VolumeStats, len(vstats.EphemeralVolumes)) copy(ephemeralStats, vstats.EphemeralVolumes)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 17 23:40:02 UTC 2023 - 14.8K bytes - Viewed (0)