- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for makeOld (0.18 sec)
-
pkg/scheduler/framework/plugins/schedulinggates/scheduling_gates_test.go
pod: st.MakePod().Name("p").SchedulingGates([]string{"foo", "bar"}).Obj(), oldObj: st.MakePod().Name("p").SchedulingGates([]string{"foo", "bar"}).Obj(), newObj: st.MakePod().Name("p").SchedulingGates([]string{"foo"}).Obj(), expectedHint: framework.QueueSkip, }, "queue-on-gates-become-empty": { pod: st.MakePod().Name("p").SchedulingGates([]string{"foo"}).Obj(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 3.7K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/interpodaffinity/plugin_test.go
pod: st.MakePod().Name("p").PodAffinityIn("service", "region", []string{"securityscan", "value2"}, st.PodAffinityWithRequiredReq).Obj(), newPod: st.MakePod().Label("service", "securityscan").Obj(), oldPod: st.MakePod().Label("service", "securityscan").Obj(), expectedHint: framework.QueueSkip, }, { name: "update a pod from match to non-match the pod affinity",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 03:08:44 UTC 2024 - 9.7K bytes - Viewed (0) -
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/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) -
pkg/kube/kclient/crdwatcher_test.go
// Happened sync vsCalls.Inc() } }() clienttest.MakeCRD(t, c, gvr.VirtualService) c.RunAndWait(stop) assert.EventuallyEqual(t, vsCalls.Load, 1) } func TestCRDWatcher(t *testing.T) { stop := test.NewStop(t) c := kube.NewFakeClient() clienttest.MakeCRD(t, c, gvr.VirtualService) vsCalls := atomic.NewInt32(0) clienttest.MakeCRD(t, c, gvr.GatewayClass) ctl := c.CrdWatcher()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 14:44:17 UTC 2024 - 3.1K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/policy_none_test.go
func TestNonePolicyAllocate(t *testing.T) { policy := &nonePolicy{} st := &mockState{ assignments: state.ContainerCPUAssignments{}, defaultCPUSet: cpuset.New(1, 2, 3, 4, 5, 6, 7), } testPod := makePod("fakePod", "fakeContainer", "1000m", "1000m") container := &testPod.Spec.Containers[0] err := policy.Allocate(st, testPod, container) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 03 16:26:09 UTC 2023 - 2.7K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodename/node_name_test.go
wantStatus *framework.Status }{ { pod: &v1.Pod{}, node: &v1.Node{}, name: "no host specified", }, { pod: st.MakePod().Node("foo").Obj(), node: st.MakeNode().Name("foo").Obj(), name: "host matches", }, { pod: st.MakePod().Node("bar").Obj(), node: st.MakeNode().Name("foo").Obj(), name: "host doesn't match",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 20 09:49:54 UTC 2023 - 1.8K bytes - Viewed (0) -
pkg/controller/volume/ephemeral/controller_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 8.5K bytes - Viewed (0)