Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for openNetnsInRoot (0.06 sec)

  1. cni/pkg/nodeagent/pod_cache.go

    	p.mu.Lock()
    	defer p.mu.Unlock()
    	if ns, ok := p.currentPodCache[uid]; ok {
    		delete(p.currentPodCache, uid)
    		// already in cache
    		return ns.Netns
    	}
    
    	return nil
    }
    
    func openNetnsInRoot(hostMountsPath string) func(nspath string) (NetnsCloser, error) {
    	return func(nspath string) (NetnsCloser, error) {
    		nspathInContainer := filepath.Join(hostMountsPath, nspath)
    		ns, err := OpenNetns(nspathInContainer)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri May 31 17:18:11 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/server.go

    	set, err := createHostsideProbeIpset(cfg.EnableIPv6)
    	if err != nil {
    		return nil, fmt.Errorf("error initializing hostside probe ipset: %w", err)
    	}
    
    	podNsMap := newPodNetnsCache(openNetnsInRoot(pconstants.HostMountsPath))
    	ztunnelServer, err := newZtunnelServer(args.ServerSocket, podNsMap)
    	if err != nil {
    		return nil, fmt.Errorf("error initializing the ztunnel server: %w", err)
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Sep 25 20:54:34 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top