- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 45 for 500m (0.06 sec)
-
plugin/pkg/admission/limitranger/admission_test.go
// pod with all resources enumerated should not merge anything input = getResourceRequirements(getComputeResourceList("100m", "512Mi"), getComputeResourceList("200m", "1G")) initInputs := []api.ResourceRequirements{getResourceRequirements(getComputeResourceList("200m", "1G"), getComputeResourceList("400m", "2G"))} pod = validPodInit(validPod("limit-memory", 1, input), initInputs...) expected = input
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 51.5K bytes - Viewed (0) -
pkg/scheduler/internal/cache/cache_test.go
now := time.Now() ttl := 10 * time.Second assumedPod := makeBasePod(t, "assumed-node-1", "test-1", "100m", "500", "", []v1.ContainerPort{{HostPort: 80}}) addedPod := makeBasePod(t, "actual-node", "test-1", "100m", "500", "", []v1.ContainerPort{{HostPort: 80}}) updatedPod := makeBasePod(t, "actual-node", "test-1", "200m", "500", "", []v1.ContainerPort{{HostPort: 90}}) test := struct { podsToAssume []*v1.Pod
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 17 01:38:03 UTC 2023 - 63.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go
} } func TestQuantityCmp(t *testing.T) { // Test when d is nil table := []struct { x string y string expect int }{ {"0", "0", 0}, {"100m", "50m", 1}, {"50m", "100m", -1}, {"10000T", "100Gi", 1}, } for _, testCase := range table { q1 := MustParse(testCase.x) q2 := MustParse(testCase.y) if result := q1.Cmp(q2); result != testCase.expect {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 49.4K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/controller_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 85K bytes - Viewed (0) -
pkg/apis/core/v1/defaults_test.go
defaultValue := defaultLimit[v1.ResourceCPU] if defaultValue.String() != "100m" { t.Errorf("Expected default cpu: %s, got: %s", "100m", defaultValue.String()) } // verify that default request was set to the limit requestValue := defaultRequest[v1.ResourceCPU] if requestValue.String() != "100m" { t.Errorf("Expected request cpu: %s, got: %s", "100m", requestValue.String()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 84.4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go
v1.ResourceCPU: "100m", v1.ResourceMemory: "100", } mediumRes = map[v1.ResourceName]string{ v1.ResourceCPU: "200m", v1.ResourceMemory: "200", } largeRes = map[v1.ResourceName]string{ v1.ResourceCPU: "300m", v1.ResourceMemory: "300", } veryLargeRes = map[v1.ResourceName]string{ v1.ResourceCPU: "500m", v1.ResourceMemory: "500", }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 82.8K bytes - Viewed (0) -
plugin/pkg/admission/resourcequota/admission_test.go
// verify all values are specified as required on the quota newPod := validPod("not-allowed-pod", 1, getResourceRequirements(getResourceList("100m", "2Gi"), getResourceList("200m", "")))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 84.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go
}, }, {name: "quantity", obj: objs("20", "200M"), schema: schemas(stringType, stringType), expectCost: map[string]int64{ `isQuantity(self.val1)`: 3, `isQuantity(self.val2)`: 3, `isQuantity("200M")`: 1, `isQuantity("20Mi")`: 1, `quantity("200M") == quantity("0.2G") && quantity("0.2G") == quantity("200M")`: 6,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:20:16 UTC 2024 - 80.2K bytes - Viewed (0) -
pkg/kubelet/nodestatus/setters_test.go
maxPods: 110, machineInfo: &cadvisorapiv1.MachineInfo{ NumCores: 2, MemoryCapacity: 1024, }, capacity: v1.ResourceList{ v1.ResourceEphemeralStorage: *resource.NewQuantity(5000, resource.BinarySI), }, expectNode: &v1.Node{ Status: v1.NodeStatus{ Capacity: v1.ResourceList{ v1.ResourceCPU: *resource.NewMilliQuantity(2000, 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/kubelet/stats/cri_stats_provider_test.go
offsetCRI = 1000 ) const ( seedRoot = 0 seedKubelet = 200 seedMisc = 300 seedSandbox0 = 1000 seedContainer0 = 2000 seedSandbox1 = 3000 seedContainer1 = 4000 seedContainer2 = 5000 seedSandbox2 = 6000 seedContainer3 = 7000 seedSandbox3 = 8000 ) const ( pName0 = "pod0" pName1 = "pod1" pName2 = "pod2" ) const ( cName0 = "container0-name"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 54.5K bytes - Viewed (0)