Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for UID (0.16 sec)

  1. cni/pkg/nodeagent/ztunnelserver_test.go

    		ObjectMeta: metav1.ObjectMeta{
    			Name: fmt.Sprintf("name-%d", id),
    			UID:  types.UID(fmt.Sprintf("uid-%d", id)),
    		},
    		Spec:   v1.PodSpec{},
    		Status: v1.PodStatus{},
    	}
    	return pod, newFakeNs(devNull.Fd())
    }
    
    func connect(ctx context.Context) struct {
    	ztunClient *net.UnixConn
    	ztunServer *ztunnelServer
    	uid        string
    } {
    	pods := &fakePodCache{}
    
    	pod, ns := podAndNetns()
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/pod_cache.go

    	}
    	return p.UpsertPodCacheWithNetns(string(pod.UID), wl), nil
    }
    
    // Update the cache with the given Netns. If there is already a Netns for the given uid, we return it, and close the one provided.
    func (p *podNetnsCache) UpsertPodCacheWithNetns(uid string, workload WorkloadInfo) Netns {
    	// lock current snapshot pod map
    	p.mu.Lock()
    	defer p.mu.Unlock()
    	if existing := p.currentPodCache[uid]; existing.Netns != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/podcgroupns.go

    // dashes, which is how the UID is represented within Kubernetes.
    func canonicalizePodUID(uid string) types.UID {
    	return types.UID(strings.Map(func(r rune) rune {
    		if unicode.IsPunct(r) {
    			r = '-'
    		}
    		return r
    	}, uid))
    }
    
    // Cgroup represents a linux cgroup.
    type Cgroup struct {
    	HierarchyID    string
    	ControllerList string
    	GroupPath      string
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/net.go

    func (s *NetServer) buildZtunnelSnapshot(ambientPodUIDs map[types.UID]*corev1.Pod) error {
    	// first add all the pods as empty:
    	for uid := range ambientPodUIDs {
    		s.currentPodSnapshot.Ensure(string(uid))
    	}
    
    	// populate full pod snapshot from cgroups
    	return s.scanProcForPodsAndCache(ambientPodUIDs)
    }
    
    func (s *NetServer) scanProcForPodsAndCache(pods map[types.UID]*corev1.Pod) error {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.1K bytes
    - Viewed (1)
  5. cni/pkg/nodeagent/pod_cache_test.go

    	pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{UID: "testUID"}}
    	ns := newFakeNs(inc())
    	wl := WorkloadInfo{
    		Workload: podToWorkload(pod),
    		Netns:    ns,
    	}
    	netns1 := p.UpsertPodCacheWithNetns(string(pod.UID), wl)
    	netnsTaken := p.Take(string(pod.UID))
    	if netns1 != netnsTaken {
    		t.Fatalf("Expected the original Netns for the same uid, got %p and %p", netns1, ns)
    	}
    	if nil != p.Take(string(pod.UID)) {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  6. docs/metrics/prometheus/grafana/bucket/minio-bucket.json

    {
      "annotations": {
        "list": [
          {
            "builtIn": 1,
            "datasource": {
              "type": "datasource",
              "uid": "grafana"
            },
            "enable": true,
            "hide": true,
            "iconColor": "rgba(0, 211, 255, 1)",
            "name": "Annotations & Alerts",
            "type": "dashboard"
          }
        ]
      },
      "__inputs": [
        {
          "name": "DS_PROMETHEUS",
          "label": "Prometheus",
    Json
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 10:03:01 GMT 2024
    - 102K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/podcgroupns_test.go

    	n := NewPodNetnsProcFinder(fakeFs())
    	pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{
    		Name:      "foo",
    		Namespace: "bar",
    		UID:       types.UID("863b91d4-4b68-4efa-917f-4b560e3e86aa"),
    	}}
    	podUIDNetns, err := n.FindNetnsForPods(map[types.UID]*corev1.Pod{
    		pod.UID: pod,
    	})
    	if err != nil {
    		panic(err)
    	}
    	defer podUIDNetns.Close()
    
    	if len(podUIDNetns) == 0 {
    		t.Fatal("expected to find pod netns")
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/net_test.go

    			Namespace: "bar",
    			UID:       "123",
    		},
    		Spec: corev1.PodSpec{ServiceAccountName: "sa"},
    	}
    
    	// this is usually called after add. so manually add the pod uid for now
    	fakens := newFakeNs(123)
    	closed := fakens.closed
    	workload := WorkloadInfo{
    		Workload: podToWorkload(pod),
    		Netns:    fakens,
    	}
    	fixture.podNsMap.UpsertPodCacheWithNetns(string(pod.UID), workload)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/ztunnelserver.go

    	if latestConn == nil {
    		return fmt.Errorf("no ztunnel connection")
    	}
    	uid := string(pod.ObjectMeta.UID)
    
    	r := &zdsapi.WorkloadRequest{
    		Payload: &zdsapi.WorkloadRequest_Add{
    			Add: &zdsapi.AddWorkload{
    				WorkloadInfo: podToWorkload(pod),
    				Uid:          uid,
    			},
    		},
    	}
    	log.Infof("About to send added pod: %s to ztunnel: %+v", uid, r)
    	data, err := proto.Marshal(r)
    	if err != nil {
    		return err
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  10. docs/metrics/prometheus/grafana/minio-dashboard.json

    {
      "annotations": {
        "list": [
          {
            "builtIn": 1,
            "datasource": {
              "type": "datasource",
              "uid": "grafana"
            },
            "enable": true,
            "hide": true,
            "iconColor": "rgba(0, 211, 255, 1)",
            "name": "Annotations & Alerts",
            "target": {
              "limit": 100,
              "matchAny": false,
              "tags": [],
              "type": "dashboard"
            },
    Json
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 10:03:01 GMT 2024
    - 93K bytes
    - Viewed (2)
Back to top