Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for Teed (0.13 sec)

  1. istioctl/pkg/util/handlers/handlers.go

    // Otherwise uses the namespace value passed into the function
    func inferNsInfo(name, namespace string) (string, string) {
    	if idx := strings.LastIndex(name, "/"); idx > 0 {
    		// If there is a / in it, we need to handle differently. This is resourcetype/name.namespace.
    		// However, resourcetype can have . in it as well, so we should only look for namespace after the /.
    		separator := strings.LastIndex(name[idx:], ".")
    		if separator < 0 {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 06 15:01:41 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/net.go

    // - this is because during add specifically, if CNI plugins have not finished executing,
    // K8S may get a pod Add event without any IPs in the object, and the pod will later be updated with IPs.
    //
    // We always need the IPs, but this is fine because this AddPodToMesh can be called from the CNI plugin as well,
    // which always has the firsthand info of the IPs, even before K8S does - so we pass them separately here because
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
  3. cni/pkg/nodeagent/pod_cache.go

    	p.mu.RLock()
    	defer p.mu.RUnlock()
    	// snapshot the cache to avoid long locking
    	return maps.Clone(p.currentPodCache)
    }
    
    // Remove and return the Netns for the given uid
    // No need to return NetnsCloser here it will be closed automatically on GC.
    // (it may be used in parallel by other parts of the code, so we want it to be used only when not used)
    func (p *podNetnsCache) Take(uid string) Netns {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/server.go

    	if err != nil {
    		log.Errorf("failed to annotate pod unenrollment: %v", err)
    	}
    	return err
    }
    
    // Delete pod from mesh: pod is deleted. iptables rules will die with it, we just need to update ztunnel
    func (s *meshDataplane) DelPodFromMesh(ctx context.Context, pod *corev1.Pod) error {
    	log := log.WithLabels("ns", pod.Namespace, "name", pod.Name)
    	err := s.netServer.DelPodFromMesh(ctx, pod)
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/envoy/configdump/listener.go

    	switch v := match.GetOnNoMatch().GetOnMatch().(type) {
    	case *matcher.Matcher_OnMatch_Action:
    		if v.Action.GetName() == name {
    			// TODO this only makes sense in context of a chain... do we need a way to give it context
    			return []string{"ANY"}, true
    		}
    	case *matcher.Matcher_OnMatch_Matcher:
    		ms, f := recurse(name, v.Matcher)
    		if !f {
    			return []string{"NONE"}, true
    		}
    		return ms, true
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  6. cni/pkg/iptables/iptables.go

    }
    
    // Setup iptables rules for HOST netnamespace. Ideally this should be an idempotent function.
    // NOTE that this expects to be run from within the HOST network namespace!
    //
    // We need to do this specifically to be able to distinguish between traffic coming from different node-level processes
    // via the nodeIP
    // - kubelet (node-local healthchecks, which we do not capture)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  7. cni/pkg/install/cniconfig.go

    	if len(template.cniNetworkConfig) > 0 {
    		installLog.Infof("Using CNI config template from CNI_NETWORK_CONFIG environment variable.")
    		return []byte(template.cniNetworkConfig), nil
    	}
    
    	return nil, fmt.Errorf("need CNI_NETWORK_CONFIG or CNI_NETWORK_CONFIG_FILE to be set")
    }
    
    func replaceCNIConfigVars(cniConfig []byte, vars cniConfigVars) []byte {
    	cniConfigStr := string(cniConfig)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/ztunnelserver.go

    	Run(ctx context.Context)
    	PodDeleted(ctx context.Context, uid string) error
    	PodAdded(ctx context.Context, pod *v1.Pod, netns Netns) error
    	Close() error
    }
    
    /*
    To clean up stale ztunnels
    
    	we may need to ztunnel to send its (uid, bootid / boot time) to us
    	so that we can remove stale entries when the ztunnel pod is deleted
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/net_test.go

    	err := netServer.DelPodFromMesh(ctx, pod)
    	assert.NoError(t, err)
    	assert.Equal(t, ztunnelServer.deletedPods.Load(), 1)
    	// with delete iptables is not called, as there is no need to delete the iptables rules
    	// from a pod that's gone from the cluster.
    	assert.Equal(t, nlDeps.DelInpodMarkIPRuleCnt.Load(), 0)
    	assert.Equal(t, nlDeps.DelLoopbackRoutesCnt.Load(), 0)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/informers.go

    		// We have no good way to distinguish between these two cases from here. But we don't need to!
    		// Existing pods will be handled by the dataplane using `GetAmbientPods`,
    		// and the initial enqueueNamespace, and new pods will be handled by the CNI.
    
    	case controllers.EventUpdate:
    		// For update, we just need to handle opt outs
    		newPod := event.New.(*corev1.Pod)
    		oldPod := event.Old.(*corev1.Pod)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 9.6K bytes
    - Viewed (0)
Back to top