- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 76 for newQuantity (0.14 sec)
-
pkg/volume/metrics_statfs.go
} metrics.Available = resource.NewQuantity(available, resource.BinarySI) metrics.Capacity = resource.NewQuantity(capacity, resource.BinarySI) metrics.Used = resource.NewQuantity(usage, resource.BinarySI) metrics.Inodes = resource.NewQuantity(inodes, resource.BinarySI) metrics.InodesFree = resource.NewQuantity(inodesFree, resource.BinarySI) metrics.InodesUsed = resource.NewQuantity(inodesUsed, resource.BinarySI) return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 19 14:33:37 UTC 2022 - 2.5K bytes - Viewed (0) -
pkg/kubelet/kubelet_node_status_test.go
v1.ResourceMemory: *resource.NewQuantity(20e9, resource.BinarySI), v1.ResourcePods: *resource.NewQuantity(0, resource.DecimalSI), }, Allocatable: v1.ResourceList{ v1.ResourceCPU: *resource.NewMilliQuantity(2800, resource.DecimalSI), v1.ResourceMemory: *resource.NewQuantity(19900e6, resource.BinarySI), v1.ResourcePods: *resource.NewQuantity(0, resource.DecimalSI), }, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 08 19:23:19 UTC 2024 - 115.8K bytes - Viewed (0) -
pkg/kubelet/nodestatus/setters_test.go
v1.ResourceMemory: *resource.NewQuantity(1024, resource.BinarySI), v1.ResourcePods: *resource.NewQuantity(110, resource.DecimalSI), }, Allocatable: v1.ResourceList{ v1.ResourceCPU: *resource.NewMilliQuantity(2000, resource.DecimalSI), v1.ResourceMemory: *resource.NewQuantity(1024, resource.BinarySI), v1.ResourcePods: *resource.NewQuantity(110, resource.DecimalSI), }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 21:47:24 UTC 2024 - 76.1K bytes - Viewed (0) -
pkg/volume/metrics_du.go
if err != nil { return NewFsInfoFailedError(err) } metrics.Available = resource.NewQuantity(available, resource.BinarySI) metrics.Capacity = resource.NewQuantity(capacity, resource.BinarySI) metrics.Inodes = resource.NewQuantity(inodes, resource.BinarySI) metrics.InodesFree = resource.NewQuantity(inodesFree, resource.BinarySI) return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 06 12:19:35 UTC 2021 - 2.5K bytes - Viewed (0) -
pkg/kubelet/lifecycle/predicate_test.go
v1.ResourceMemory: *resource.NewQuantity(memory, resource.BinarySI), v1.ResourcePods: *resource.NewQuantity(pods, resource.DecimalSI), extendedResourceA: *resource.NewQuantity(extendedA, resource.DecimalSI), v1.ResourceEphemeralStorage: *resource.NewQuantity(storage, resource.BinarySI), hugePageResourceA: *resource.NewQuantity(hugePageA, resource.BinarySI), } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 23:13:50 UTC 2024 - 14.2K bytes - Viewed (0) -
pkg/kubelet/apis/config/validation/validation_reserved_memory_test.go
{ NumaNode: 0, Limits: v1.ResourceList{ v1.ResourceMemory: *resource.NewQuantity(128, resource.DecimalSI), }, }, { NumaNode: 0, Limits: v1.ResourceList{ v1.ResourceMemory: *resource.NewQuantity(64, resource.DecimalSI), }, }, }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 18 13:38:01 UTC 2021 - 3.7K bytes - Viewed (0) -
pkg/volume/csi/csi_metrics_test.go
for _, usage := range expectedMetrics.Usage { if usage.Unit == csipbv1.VolumeUsage_BYTES { availableBytes := resource.NewQuantity(usage.Available, resource.BinarySI) totalBytes := resource.NewQuantity(usage.Total, resource.BinarySI) usedBytes := resource.NewQuantity(usage.Used, resource.BinarySI) if metrics.Available.Cmp(*availableBytes) != 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 11 06:07:40 UTC 2023 - 5.8K bytes - Viewed (0) -
pkg/kubelet/server/stats/volume_stat_calculator_test.go
vMetrics := &volume.Metrics{ Available: resource.NewQuantity(available, resource.BinarySI), Capacity: resource.NewQuantity(capacity, resource.BinarySI), Used: resource.NewQuantity(available-capacity, resource.BinarySI), Inodes: resource.NewQuantity(inodesTotal, resource.BinarySI), InodesFree: resource.NewQuantity(inodesFree, resource.BinarySI), InodesUsed: resource.NewQuantity(inodesTotal-inodesFree, resource.BinarySI), }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 9.6K bytes - Viewed (0) -
pkg/kubelet/cm/memorymanager/memory_manager_test.go
hugepages2M: *resource.NewQuantity(14, resource.DecimalSI), hugepages1G: *resource.NewQuantity(13, resource.DecimalSI)}, machineInfo, []kubeletconfig.MemoryReservation{ { NumaNode: 0, Limits: v1.ResourceList{ v1.ResourceMemory: *resource.NewQuantity(12, resource.DecimalSI), hugepages2M: *resource.NewQuantity(70, resource.DecimalSI),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 05 13:01:40 UTC 2023 - 70.2K bytes - Viewed (0) -
pkg/kubelet/cadvisor/util.go
hugePagesBytes := pageSizeBytes * int64(hugepagesInfo.NumPages) pageSizeQuantity := resource.NewQuantity(pageSizeBytes, resource.BinarySI) c[v1helper.HugePageResourceName(*pageSizeQuantity)] = *resource.NewQuantity(hugePagesBytes, resource.BinarySI) } return c } // EphemeralStorageCapacityFromFsInfo returns the capacity of the ephemeral storage from the FsInfo.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 04 05:08:20 UTC 2023 - 2.8K bytes - Viewed (0)