- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 76 for makeOld (0.38 sec)
-
src/go/types/termlist_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types import ( "strings" "testing" ) // maketl makes a term list from a string of the term list. func maketl(s string) termlist { s = strings.ReplaceAll(s, " ", "") names := strings.Split(s, "|") r := make(termlist, len(names)) for i, n := range names { r[i] = testTerm(n) } return r
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 7.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/rest/delete_test.go
pod: makePod(0), options: makeOption(2), }, // want 0 wantDeletionGracePeriodSeconds: utilpointer.Int64(0), wantGracePeriodSeconds: utilpointer.Int64(2), wantGraceful: false, wantGracefulPending: false, }, { name: "when DeletionGracePeriodSeconds=1, GracePeriodSeconds=-1", args: args{ pod: makePod(1), options: makeOption(-1), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 24 11:44:07 UTC 2024 - 9.3K bytes - Viewed (0) -
cni/pkg/repair/repair_test_helpers.go
// Pod specs var ( brokenPodTerminating = makePod(makePodArgs{ PodName: "broken-pod-terminating", Annotations: map[string]string{ "sidecar.istio.io/status": "something", }, Labels: map[string]string{ "testlabel": "true", }, NodeName: "test-node", InitContainerStatus: &brokenInitContainerTerminating, }) brokenPodWaiting = makePod(makePodArgs{ PodName: "broken-pod-waiting",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 12 17:39:53 UTC 2023 - 4.7K bytes - Viewed (0) -
pkg/scheduler/internal/cache/snapshot_test.go
{ name: "pods not scheduled", pods: []*v1.Pod{ st.MakePod().Name("foo").Namespace("foo").Obj(), st.MakePod().Name("bar").Namespace("bar").Obj(), }, expected: sets.New[string](), }, { name: "scheduled pods that do not use any PVC", pods: []*v1.Pod{ st.MakePod().Name("foo").Namespace("foo").Node("node-1").Obj(), st.MakePod().Name("bar").Namespace("bar").Node("node-2").Obj(), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 05 08:00:25 UTC 2023 - 12K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/interpodaffinity/filtering_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 01 10:24:54 UTC 2023 - 58.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go
initialPods: []*example.Pod{makePod("1"), makePod("2"), makePod("3")}, expectedInitialEvents: addEventsFromCreatedPods, expectedInitialEventsBookmark: initialEventsEndFromLastCreatedPod, podsAfterEstablishingWatch: []*example.Pod{makePod("4"), makePod("5")}, expectedEventsAfterEstablishingWatch: addEventsFromCreatedPods, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 63.8K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodevolumelimits/non_csi_test.go
// deletedPVPod2 is a different pod than deletedPVPod but using the same PVC deletedPVPod2 = st.MakePod().PVC("pvcWithDeletedPV").Obj() anotherDeletedPVPod = st.MakePod().PVC("anotherPVCWithDeletedPV").Obj() emptyPod = st.MakePod().Obj() unboundPVCPod = st.MakePod().PVC("unboundPVC").Obj() // Different pod than unboundPVCPod, but using the same unbound PVC
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Dec 30 23:00:56 UTC 2023 - 36.8K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/least_allocated_test.go
requestedPod: st.MakePod().Obj(), nodes: []*v1.Node{ st.MakeNode().Name("node1").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(), st.MakeNode().Name("node2").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(), }, existingPods: []*v1.Pod{ st.MakePod().Node("node1").Obj(), st.MakePod().Node("node1").Obj(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 18.8K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/fit_test.go
"skip-queue-on-disable-inplace-pod-vertical-scaling": { pod: st.MakePod().Name("pod1").Req(map[v1.ResourceName]string{v1.ResourceCPU: "1"}).Obj(), oldObj: st.MakePod().Name("pod2").Req(map[v1.ResourceName]string{v1.ResourceCPU: "2"}).Node("fake").Obj(), newObj: st.MakePod().Name("pod2").Req(map[v1.ResourceName]string{v1.ResourceCPU: "1"}).Node("fake").Obj(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 57.4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/queuesort/priority_sort_test.go
PodInfo: mustNewPodInfo(t, st.MakePod().Priority(lowPriority).Obj()), }, p2: &framework.QueuedPodInfo{ PodInfo: mustNewPodInfo(t, st.MakePod().Priority(highPriority).Obj()), }, expected: false, // p2 should be ahead of p1 in the queue }, { name: "p1.priority greater than p2.priority", p1: &framework.QueuedPodInfo{ PodInfo: mustNewPodInfo(t, st.MakePod().Priority(highPriority).Obj()), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 12 14:11:04 UTC 2022 - 2.8K bytes - Viewed (0)