Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for WithLabels (0.08 sec)

  1. cni/pkg/nodeagent/cni-watcher.go

    		log.Errorf("failed to process CNI event payload: %v", err)
    		http.Error(w, err.Error(), http.StatusBadRequest)
    		return
    	}
    
    	if err := s.ReconcileCNIAddEvent(req.Context(), msg); err != nil {
    		log.WithLabels("ns", msg.PodNamespace, "name", msg.PodName).Errorf("failed to handle add event: %v", err)
    		http.Error(w, err.Error(), http.StatusInternalServerError)
    		return
    	}
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jul 02 18:48:50 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/net.go

    }
    
    // RemovePodFromMesh is called when a pod needs to be removed from the mesh
    func (s *NetServer) RemovePodFromMesh(ctx context.Context, pod *corev1.Pod, isDelete bool) error {
    	log := log.WithLabels("ns", pod.Namespace, "name", pod.Name)
    	log.WithLabels("delete", isDelete).Debugf("removing pod from the mesh")
    
    	// Aggregate errors together, so that if part of the cleanup fails we still proceed with other steps.
    	var errs []error
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 21 16:48:55 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/ztunnelserver.go

    	snap := z.pods.ReadCurrentPodSnapshot()
    	for uid, wl := range snap {
    		var resp *zdsapi.WorkloadResponse
    		var err error
    		log := log.WithLabels("uid", uid)
    		if wl.Workload != nil {
    			log = log.WithLabels(
    				"name", wl.Workload.Name,
    				"namespace", wl.Workload.Namespace,
    				"serviceAccount", wl.Workload.ServiceAccount)
    		}
    		if wl.Netns != nil {
    			fd := int(wl.Netns.Fd())
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Jul 29 16:08:35 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  4. cni/pkg/repair/repaircontroller.go

    // Additionally, we need to jump through hoops to find the network namespace.
    func (c *Controller) repairPod(pod *corev1.Pod) error {
    	m := podsRepaired.With(typeLabel.Value(repairType))
    	log := repairLog.WithLabels("pod", pod.Namespace+"/"+pod.Name)
    	key := types.NamespacedName{Name: pod.Name, Namespace: pod.Namespace}
    	// We will get an event every time the pod changes. The repair is not instantaneous, though -- it will only recover
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Feb 10 00:31:55 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. cni/pkg/log/uds_test.go

    	istiolog.FindScope("default").SetOutputLevel(istiolog.DebugLevel)
    	istiolog.Debug("debug log")
    	istiolog.Info("info log")
    	istiolog.Warn("warn log")
    	istiolog.Error("error log")
    	istiolog.WithLabels("key", 2).Infof("with labels")
    	// This will error because stdout cannot sync, but the UDS part should sync
    	// Ideally we would fail if the UDS part fails but the error library makes it kind of tricky
    	_ = istiolog.Sync()
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. cni/pkg/plugin/plugin.go

    		log.Error("Failed to configure istio-cni logging")
    	}
    
    	var loggedPrevResult any
    	if conf.PrevResult == nil {
    		loggedPrevResult = "none"
    	} else {
    		loggedPrevResult = conf.PrevResult
    	}
    	log.WithLabels("if", args.IfName).Debugf("istio-cni CmdAdd config: %+v", conf)
    	log.Debugf("istio-cni CmdAdd previous result: %+v", loggedPrevResult)
    
    	// Determine if running under k8s by checking the CNI args
    	k8sArgs := K8sArgs{}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Aug 14 19:36:19 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. cni/pkg/log/uds.go

    	// processes interleave.
    	l.mu.Lock()
    	defer l.mu.Unlock()
    	for _, m := range messages {
    		logger := pluginLog
    		// For any k/v pairs, add them back
    		for k, v := range m.Arbitrary {
    			logger = logger.WithLabels(k, v)
    		}
    		// There is no fatal log from CNI plugin
    		switch m.Level {
    		case "debug":
    			logger.LogWithTime(istiolog.DebugLevel, m.Msg, m.Time)
    		case "info":
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jun 28 19:12:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. api/go1.9.txt

    pkg runtime/pprof, func Label(context.Context, string) (string, bool)
    pkg runtime/pprof, func Labels(...string) LabelSet
    pkg runtime/pprof, func SetGoroutineLabels(context.Context)
    pkg runtime/pprof, func WithLabels(context.Context, LabelSet) context.Context
    pkg runtime/pprof, type LabelSet struct
    pkg sync, method (*Map) Delete(interface{})
    pkg sync, method (*Map) Load(interface{}) (interface{}, bool)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 04 20:20:20 UTC 2021
    - 10.7K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/informers.go

    		return ""
    	}
    	return m[label.IoIstioDataplaneMode.Name]
    }
    
    func (s *InformerHandlers) reconcilePod(input any) error {
    	event := input.(controllers.Event)
    	pod := event.Latest().(*corev1.Pod)
    	log := log.WithLabels("ns", pod.Namespace, "name", pod.Name)
    
    	defer EventTotals.With(eventTypeTag.Value(event.Event.String())).Increment()
    
    	switch event.Event {
    	case controllers.EventAdd:
    		// pod was added to our cache
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/server.go

    	}
    
    	return retErr
    }
    
    func (s *meshDataplane) RemovePodFromMesh(ctx context.Context, pod *corev1.Pod, isDelete bool) error {
    	log := log.WithLabels("ns", pod.Namespace, "name", pod.Name)
    
    	// Aggregate errors together, so that if part of the removal fails we still proceed with other steps.
    	var errs []error
    
    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