- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 35 for PodList (0.1 sec)
-
staging/src/k8s.io/cli-runtime/pkg/printers/managedfields_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 16 14:52:03 UTC 2021 - 2.6K bytes - Viewed (0) -
istioctl/pkg/util/handlers/handlers.go
return []string{podName}, namespace, err } options := metav1.ListOptions{LabelSelector: selector} podList, err := client.Pods(namespace).List(context.TODO(), options) if err != nil { return []string{}, "", err } pods := []string{} for i := range podList.Items { pods = append(pods, podList.Items[i].Name) } return pods, namespace, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Feb 06 15:01:41 UTC 2024 - 6.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/util_test.go
storage := etcd3.New(server.V3Client, apitesting.TestCodec(codecs, examplev1.SchemeGroupVersion, example2v1.SchemeGroupVersion), func() runtime.Object { return &example.Pod{} }, func() runtime.Object { return &example.PodList{} }, prefix, "/pods", schema.GroupResource{Resource: "pods"}, identity.NewEncryptCheckTransformer(), etcd3.NewDefaultLeaseManagerConfig()) return server, storage } server, etcdStorage := newEtcdTestStorage(t, "")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 11 12:07:39 UTC 2024 - 6.3K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/template_test.go
// Template printer should succeed on these resources. om := func(name string) metav1.ObjectMeta { return metav1.ObjectMeta{Name: name} } objects := []runtime.Object{ &v1.Pod{ObjectMeta: om("pod")}, &v1.PodList{}, &v1.PodList{Items: []v1.Pod{{}}}, &v1.Endpoints{ Subsets: []v1.EndpointSubset{{ Addresses: []v1.EndpointAddress{{IP: "127.0.0.1"}, {IP: "localhost"}}, Ports: []v1.EndpointPort{{Port: 8080}}, }}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 22 23:10:00 UTC 2019 - 7.1K bytes - Viewed (0) -
pkg/kubelet/config/apiserver_test.go
ObjectMeta: metav1.ObjectMeta{Name: "q"}, Spec: v1.PodSpec{Containers: []v1.Container{{Image: "image/blah"}}}} // Setup fake api client. fakeWatch := watch.NewFake() lw := fakePodLW{ listResp: &v1.PodList{Items: []v1.Pod{*pod1v1}}, watchResp: fakeWatch, } ch := make(chan interface{}) newSourceApiserverFromLW(lw, ch) got, ok := <-ch if !ok { t.Errorf("Unable to read from channel when expected")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 22 18:31:03 UTC 2017 - 5.6K bytes - Viewed (0) -
pkg/controller/deployment/recreate.go
if oldPods := util.GetActualReplicaCountForReplicaSets(oldRSs); oldPods > 0 { return true } for rsUID, podList := range podMap { // If the pods belong to the new ReplicaSet, ignore. if newRS != nil && newRS.UID == rsUID { continue } for _, pod := range podList { switch pod.Status.Phase { case v1.PodFailed, v1.PodSucceeded: // Don't count pods in terminal state. continue
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 13 20:32:13 UTC 2021 - 4.2K bytes - Viewed (0) -
istioctl/pkg/completion/completion.go
client, err := ctx.CLIClient() if err != nil { return nil, err } ns := ctx.NamespaceOrDefault(ctx.Namespace()) podList, err := client.Kube().CoreV1().Pods(ns).List(context.Background(), metav1.ListOptions{}) if err != nil { return nil, err } var podsName []string for _, pod := range podList.Items { if toComplete == "" || strings.HasPrefix(pod.Name, toComplete) { podsName = append(podsName, pod.Name) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 4.9K bytes - Viewed (0) -
pkg/kubelet/config/common.go
} } return true, v1Pod, nil } func tryDecodePodList(data []byte, defaultFn defaultFunc) (parsed bool, pods v1.PodList, err error) { obj, err := runtime.Decode(legacyscheme.Codecs.UniversalDecoder(), data) if err != nil { return false, pods, err } newPods, ok := obj.(*api.PodList) // Check whether the object could be converted to list of pods. if !ok { err = fmt.Errorf("invalid pods list: %#v", obj)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:48 UTC 2023 - 5.8K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/json_test.go
"yaml": NewTypeSetter(scheme.Scheme).ToPrinter(&YAMLPrinter{}), } objects := map[string]runtime.Object{ "pod": &v1.Pod{ObjectMeta: om("pod")}, "emptyPodList": &v1.PodList{}, "nonEmptyPodList": &v1.PodList{Items: []v1.Pod{{}}}, "endpoints": &v1.Endpoints{ Subsets: []v1.EndpointSubset{{ Addresses: []v1.EndpointAddress{{IP: "127.0.0.1"}, {IP: "localhost"}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 4K bytes - Viewed (0) -
src/cmd/internal/cov/readcovdata.go
PanicOnWarning ) func (r *CovDataReader) Visit() error { podlist, err := pods.CollectPods(r.indirs, false) if err != nil { return fmt.Errorf("reading inputs: %v", err) } if len(podlist) == 0 { r.warn("no applicable files found in input directories") } for _, p := range podlist { if err := r.visitPod(p); err != nil { return err } } r.vis.Finish()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 8.4K bytes - Viewed (0)