Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for lock (0.15 sec)

  1. cni/pkg/nodeagent/pod_cache.go

    func (p *podNetnsCache) Get(uid string) Netns {
    	// lock current snapshot pod map
    	p.mu.RLock()
    	defer p.mu.RUnlock()
    	if info, f := p.currentPodCache[uid]; f {
    		return info.Netns
    	}
    	return nil
    }
    
    // make sure uid is in the cache, even if we don't have a netns
    func (p *podNetnsCache) Ensure(uid string) {
    	p.mu.Lock()
    	defer p.mu.Unlock()
    	if _, ok := p.currentPodCache[uid]; !ok {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  2. manifests/charts/istio-control/istio-discovery/templates/role.yaml

    - apiGroups: ["networking.istio.io"]
      verbs: ["create"]
      resources: ["gateways"]
    
    # For storing CA secret
    - apiGroups: [""]
      resources: ["secrets"]
      # TODO lock this down to istio-ca-cert if not using the DNS cert mesh config
      verbs: ["create", "get", "watch", "list", "update", "delete"]
    
    # For status controller, so it can delete the distribution report configmap
    - apiGroups: [""]
    Others
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu May 04 16:21:31 GMT 2023
    - 971 bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/ztunnelserver.go

    }
    
    func (c *connMgr) addConn(conn *ZtunnelConnection) {
    	log.Debug("ztunnel connected")
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	c.connectionSet[conn] = struct{}{}
    	c.latestConn = conn
    	ztunnelConnected.RecordInt(int64(len(c.connectionSet)))
    }
    
    func (c *connMgr) LatestConn() *ZtunnelConnection {
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	return c.latestConn
    }
    
    func (c *connMgr) deleteConn(conn *ZtunnelConnection) {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  4. cni/pkg/log/uds.go

    			continue
    		}
    		msg.Msg = strings.TrimSpace(msg.Msg)
    		messages = append(messages, msg)
    	}
    	// Lock log message printing to prevent log messages from different CNI
    	// processes interleave.
    	l.mu.Lock()
    	defer l.mu.Unlock()
    	for _, m := range messages {
    		// There is no fatal log from CNI plugin
    		switch m.Level {
    		case "debug":
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Nov 29 01:05:12 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  5. istioctl/pkg/waypoint/waypoint.go

    				Delete(context.Background(), name, metav1.DeleteOptions{}); err != nil {
    				if errors.IsNotFound(err) {
    					fmt.Fprintf(cmd.OutOrStdout(), "waypoint %v/%v not found\n", namespace, name)
    				} else {
    					mu.Lock()
    					multiErr = multierror.Append(multiErr, err)
    					mu.Unlock()
    				}
    			} else {
    				fmt.Fprintf(cmd.OutOrStdout(), "waypoint %v/%v deleted\n", namespace, name)
    			}
    		}(name)
    	}
    
    	wg.Wait()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 16:16:40 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  6. manifests/charts/istiod-remote/templates/role.yaml

    - apiGroups: ["networking.istio.io"]
      verbs: ["create"]
      resources: ["gateways"]
    
    # For storing CA secret
    - apiGroups: [""]
      resources: ["secrets"]
      # TODO lock this down to istio-ca-cert if not using the DNS cert mesh config
      verbs: ["create", "get", "watch", "list", "update", "delete"]
    
    # For status controller, so it can delete the distribution report configmap
    - apiGroups: [""]
    Others
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu May 04 16:21:31 GMT 2023
    - 1021 bytes
    - Viewed (0)
  7. Makefile.core.mk

    init: $(TARGET_OUT)/istio_is_init init-ztunnel-rs
    	@mkdir -p ${TARGET_OUT}/logs
    	@mkdir -p ${TARGET_OUT}/release
    
    # I tried to make this dependent on what I thought was the appropriate
    # lock file, but it caused the rule for that file to get run (which
    # seems to be about obtaining a new version of the 3rd party libraries).
    $(TARGET_OUT)/istio_is_init: bin/init.sh istio.deps | $(TARGET_OUT)
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 26 19:45:17 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  8. istioctl/pkg/cli/mock_client.go

    Xiaopeng Han <******@****.***> 1709887099 +0800
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. istioctl/pkg/metrics/metrics_test.go

    	return promv1.AlertsResult{}, fmt.Errorf("TODO mockPromAPI doesn't mock Alerts")
    }
    
    func (client mockPromAPI) AlertManagers(ctx context.Context) (promv1.AlertManagersResult, error) {
    	return promv1.AlertManagersResult{}, fmt.Errorf("TODO mockPromAPI doesn't mock AlertManagers")
    }
    
    func (client mockPromAPI) CleanTombstones(ctx context.Context) error {
    	return nil
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Oct 25 02:07:44 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/cni-watcher_test.go

    		Status: corev1.PodStatus{
    			PodIP: fakePodIP,
    		},
    	}
    	ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "funkyns"}}
    
    	client := kube.NewFakeClient(ns, pod)
    
    	// We are expecting at most 1 calls to the mock, wait for them
    	wg, waitForMockCalls := NewWaitForNCalls(t, 1)
    	fs := &fakeServer{testWG: wg}
    
    	fs.On("AddPodToMesh",
    		ctx,
    		pod,
    		util.GetPodIPsIfPresent(pod),
    		valid.Netns,
    	).Return(nil)
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Feb 02 08:18:40 GMT 2024
    - 5.4K bytes
    - Viewed (0)
Back to top