- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 102 for Pods (0.04 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go
podCount := 1000 var pods []*example.Pod for i := 0; i < podCount; i++ { obj := &example.Pod{ObjectMeta: metav1.ObjectMeta{Name: fmt.Sprintf("pod-%d", i)}} key := computePodKey(obj) storedObj := &example.Pod{} err := store.Create(ctx, key, obj, storedObj, 0) if err != nil { t.Fatalf("Set failed: %v", err) } pods = append(pods, storedObj) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 12:45:33 UTC 2024 - 91.4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/interpodaffinity/filtering_test.go
} for _, test := range tests { t.Run(test.name, func(t *testing.T) { // getMeta creates predicate meta data given the list of pods. getState := func(pods []*v1.Pod) (*InterPodAffinity, *framework.CycleState, *preFilterState, *cache.Snapshot) { snapshot := cache.NewSnapshot(pods, test.nodes) _, ctx := ktesting.NewTestContext(t) ctx, cancel := context.WithCancel(ctx) defer cancel()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 01 10:24:54 UTC 2023 - 58.2K bytes - Viewed (0) -
pkg/scheduler/internal/cache/cache_test.go
} // Create a few pods for tests. var pods []*v1.Pod for i := 0; i < 20; i++ { pod := st.MakePod().Name(fmt.Sprintf("test-pod%v", i)).Namespace("test-ns").UID(fmt.Sprintf("test-puid%v", i)). Node(fmt.Sprintf("test-node%v", i%10)).Obj() pods = append(pods, pod) } // Create a few pods as updated versions of the above pods. var updatedPods []*v1.Pod for _, p := range pods {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 17 01:38:03 UTC 2023 - 63.8K bytes - Viewed (0) -
plugin/pkg/admission/resourcequota/admission_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 84.1K bytes - Viewed (0) -
pkg/controller/podautoscaler/replica_calculator_test.go
) func (tc *replicaCalcTestCase) prepareTestClientSet() *fake.Clientset { fakeClient := &fake.Clientset{} fakeClient.AddReactor("list", "pods", func(action core.Action) (handled bool, ret runtime.Object, err error) { obj := &v1.PodList{} podsCount := int(tc.currentReplicas) // Failed pods are not included in tc.currentReplicas if tc.podPhase != nil && len(tc.podPhase) > podsCount { podsCount = len(tc.podPhase) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 19 03:31:34 UTC 2023 - 68.4K bytes - Viewed (0) -
pkg/kubelet/pod_workers.go
// podWorkers keeps track of operations on pods and ensures each pod is // reconciled with the container runtime and other subsystems. The worker // also tracks which pods are in flight for starting, which pods are // shutting down but still have running containers, and which pods have // terminated recently and are guaranteed to have no running containers. // // podWorkers is the source of truth for what pods should be active on a
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 02 13:22:37 UTC 2024 - 74.8K bytes - Viewed (0) -
pkg/kubelet/eviction/helpers.go
// Len is part of sort.Interface. func (ms *multiSorter) Len() int { return len(ms.pods) } // Swap is part of sort.Interface. func (ms *multiSorter) Swap(i, j int) { ms.pods[i], ms.pods[j] = ms.pods[j], ms.pods[i] } // Less is part of sort.Interface. func (ms *multiSorter) Less(i, j int) bool { p1, p2 := ms.pods[i], ms.pods[j] var k int for k = 0; k < len(ms.cmp)-1; k++ { cmpResult := ms.cmp[k](p1, p2)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 18:46:33 UTC 2023 - 53.6K bytes - Viewed (0) -
istioctl/pkg/describe/describe.go
configClient istioclient.Interface, client kube.CLIClient, ) error { pods, err := kubeClient.CoreV1().Pods("").List(context.TODO(), metav1.ListOptions{ LabelSelector: "istio=ingressgateway", FieldSelector: "status.phase=Running", }) if err != nil { return multierror.Prefix(err, "Could not find ingress gateway pods") } if len(pods.Items) == 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 50.4K bytes - Viewed (0) -
operator/pkg/apis/istio/v1alpha1/values_types.proto
string provider = 22; // The number of pods that can be unavailable during a rolling update of the CNI DaemonSet (see // `updateStrategy.rollingUpdate.maxUnavailable` here: // https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/daemon-set-v1/#DaemonSetSpec). // May be specified as a number of pods or as a percent of the total number // of pods at the start of the update.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 03 01:55:05 UTC 2024 - 57.2K bytes - Viewed (0) -
pkg/kubelet/pod_workers_test.go
t.Fatalf("unexpected started static pods: %s", cmp.Diff(e, a)) } if e, a := map[string][]types.UID{}, podWorkers.waitingToStartStaticPodsByFullname; !reflect.DeepEqual(e, a) { t.Fatalf("unexpected waiting static pods: %s", cmp.Diff(e, a)) } // initiate a sync with all pods remaining state := podWorkers.SyncKnownPods([]*v1.Pod{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 75.6K bytes - Viewed (0)