- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for WithLabels (0.12 sec)
-
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 Oct 30 22:53:10 UTC 2024 - Last Modified: Tue Jul 02 18:48:50 UTC 2024 - 6.7K bytes - Viewed (0) -
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 Oct 30 22:53:10 UTC 2024 - Last Modified: Mon Jul 29 16:08:35 UTC 2024 - 13.2K bytes - Viewed (0) -
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 Oct 30 22:53:10 UTC 2024 - Last Modified: Mon Oct 21 16:48:55 UTC 2024 - 9.1K bytes - Viewed (0) -
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 Oct 30 22:53:10 UTC 2024 - Last Modified: Sat Feb 10 00:31:55 UTC 2024 - 10.4K bytes - Viewed (0) -
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 Oct 30 22:53:10 UTC 2024 - Last Modified: Wed Jun 12 16:26:28 UTC 2024 - 4.1K bytes - Viewed (0) -
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 Oct 30 22:53:10 UTC 2024 - Last Modified: Wed Aug 14 19:36:19 UTC 2024 - 10.5K bytes - Viewed (0) -
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 Oct 30 22:53:10 UTC 2024 - Last Modified: Fri Jun 28 19:12:54 UTC 2024 - 4.7K bytes - Viewed (0) -
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 Oct 30 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 11.7K bytes - Viewed (0) -
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 Oct 30 22:53:10 UTC 2024 - Last Modified: Wed Sep 25 20:54:34 UTC 2024 - 13.4K bytes - Viewed (0) -
cni/pkg/iptables/iptables.go
// Append our rules here builder := cfg.appendHostRules(hostSNATIP, hostSNATIPV6) log.Info("Adding host netnamespace iptables rules") if err := cfg.executeCommands(log.WithLabels("component", "host"), builder); err != nil { log.Errorf("failed to add host netnamespace iptables rules: %v", err) return err } return nil } func (cfg *IptablesConfigurator) DeleteHostRules() {
Registered: Wed Oct 30 22:53:10 UTC 2024 - Last Modified: Tue Oct 15 15:39:28 UTC 2024 - 23.3K bytes - Viewed (0)