Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 561 for Pods (0.03 sec)

  1. src/internal/coverage/pods/pods.go

    			pod.Origins = append(pod.Origins, e.origin)
    			pod.ProcessIDs = append(pod.ProcessIDs, e.pid)
    		}
    		pods = append(pods, pod)
    	}
    	slices.SortFunc(pods, func(a, b Pod) int {
    		return strings.Compare(a.MetaFile, b.MetaFile)
    	})
    	return pods
    }
    
    func warning(s string, a ...interface{}) {
    	fmt.Fprintf(os.Stderr, "warning: ")
    	fmt.Fprintf(os.Stderr, s, a...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. cmd/kubeadm/test/resources/pods.go

    }
    
    // CreateWithPodSuffix creates a fake static pod using the provided
    // client and suffix
    func (p *FakeStaticPod) CreateWithPodSuffix(client clientset.Interface, suffix string) error {
    	_, err := client.CoreV1().Pods(metav1.NamespaceSystem).Create(context.TODO(), p.Pod(suffix), metav1.CreateOptions{})
    	return err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 17 14:40:46 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  3. pkg/kubelet/active_deadline_test.go

    	// this pod has no start time
    	pods[3].Status.StartTime = nil
    	pods[3].Spec.ActiveDeadlineSeconds = &notYetActiveDeadlineSeconds
    
    	testCases := []struct {
    		pod      *v1.Pod
    		expected bool
    	}{{pods[0], true}, {pods[1], false}, {pods[2], false}, {pods[3], false}, {pods[4], false}}
    
    	for i, testCase := range testCases {
    		if actual := handler.ShouldSync(testCase.pod); actual != testCase.expected {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 08 09:06:42 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/policy/v1beta1/generated.proto

      // An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
      // In policy/v1, an empty selector will select all pods in the namespace.
      // +optional
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    
      // An eviction is allowed if at most "maxUnavailable" pods selected by
      // "selector" are unavailable after the eviction, i.e. even in absence of
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. pkg/kubelet/userns/userns_manager_switch_test.go

    	pods := []types.UID{"pod-1", "pod-2"}
    
    	testUserNsPodsManager := &testUserNsPodsManager{
    		podDir: t.TempDir(),
    		// List the same pods we will record, so the second time we create the userns
    		// manager, it will find these pods on disk with userns data.
    		podList: pods,
    	}
    	m, err := MakeUserNsManager(testUserNsPodsManager)
    	require.NoError(t, err)
    
    	// Record the pods on disk.
    	for _, podUID := range pods {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. pkg/apis/policy/types.go

    	// Healthy pods will be subject to the PDB for eviction.
    	//
    	// AlwaysAllow policy means that all running pods (status.phase="Running"),
    	// but not yet healthy are considered disrupted and can be evicted regardless
    	// of whether the criteria in a PDB is met. This means perspective running
    	// pods of a disrupted application might not get a chance to become healthy.
    	// Healthy pods will be subject to the PDB for eviction.
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  7. pkg/kubelet/config/file.go

    func newSourceFile(path string, nodeName types.NodeName, period time.Duration, updates chan<- interface{}) *sourceFile {
    	send := func(objs []interface{}) {
    		var pods []*v1.Pod
    		for _, o := range objs {
    			pods = append(pods, o.(*v1.Pod))
    		}
    		updates <- kubetypes.PodUpdate{Pods: pods, Op: kubetypes.SET, Source: kubetypes.FileSource}
    	}
    	store := cache.NewUndeltaStore(send, cache.MetaNamespaceKeyFunc)
    	return &sourceFile{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 01 07:19:44 UTC 2021
    - 6.2K bytes
    - Viewed (0)
  8. pkg/kubelet/container/runtime_cache.go

    		return err
    	}
    	r.pods, r.cacheTime = pods, timestamp
    	return nil
    }
    
    // getPodsWithTimestamp records a timestamp and retrieves pods from the getter.
    func (r *runtimeCache) getPodsWithTimestamp(ctx context.Context) ([]*Pod, time.Time, error) {
    	// Always record the timestamp before getting the pods to avoid stale pods.
    	timestamp := time.Now()
    	pods, err := r.getter.GetPods(ctx, false)
    	return pods, timestamp, err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 09 04:03:51 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. pkg/kube/kclient/index_test.go

    			NodeName:           "node",
    		},
    	}
    
    	assertIndex := func(k SaNode, pods ...*corev1.Pod) {
    		t.Helper()
    		assert.EventuallyEqual(t, func() []*corev1.Pod { return index.Lookup(k) }, pods, retry.Timeout(time.Second*5))
    	}
    
    	// When we create a pod, we should (eventually) see it in the index
    	c.Kube().CoreV1().Pods("ns").Create(context.Background(), pod1, metav1.CreateOptions{})
    	assertIndex(k1, pod1)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 04 03:49:30 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  10. pkg/test/kube/util.go

    func NewPodMustFetch(a istioKube.CLIClient, namespace string, selectors ...string) PodFetchFunc {
    	return func() ([]corev1.Pod, error) {
    		pods, err := a.PodsForSelector(context.TODO(), namespace, selectors...)
    		if err != nil {
    			return nil, err
    		}
    		if len(pods.Items) == 0 {
    			return nil, fmt.Errorf("no pods found for %v", selectors)
    		}
    		return pods.Items, nil
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 22:47:52 UTC 2023
    - 9.4K bytes
    - Viewed (0)
Back to top