- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for origin (0.15 sec)
-
istioctl/pkg/util/formatting/formatter.go
func render(m diag.Message, colorize bool) string { return fmt.Sprintf("%s%v%s [%v]%s %s", colorPrefix(m, colorize), m.Type.Level(), colorSuffix(colorize), m.Type.Code(), m.Origin(), fmt.Sprintf(m.Type.Template(), m.Parameters...), ) } func colorPrefix(m diag.Message, colorize bool) string { if !colorize { return "" } prefix, ok := colorPrefixes[m.Type.Level()]
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Jul 11 02:41:45 GMT 2023 - 3.1K bytes - Viewed (0) -
istioctl/pkg/util/formatting/formatter_test.go
"level": "Error", "message": "Explosion accident: the bubble is too big", "origin": "SoapBubble" }, { "code": "C1", "documentationUrl": "` + url.ConfigAnalysis + `/c1/", "level": "Warning", "message": "Collapse danger: the castle is too old", "origin": "GrandCastle" } ]` g.Expect(output).To(Equal(expectedOutput)) }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Oct 31 14:48:28 GMT 2023 - 4.1K bytes - Viewed (0) -
cni/pkg/nodeagent/netns_linux.go
return err } defer func() { err := threadNS.Set() // switch back if err == nil { // Unlock the current thread only when we successfully switched back // to the original namespace; otherwise leave the thread locked which // will force the runtime to scrap the current thread, that is maybe // not as optimal but at least always safe to do. runtime.UnlockOSThread() } }()
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Jan 31 10:05:36 GMT 2024 - 2.7K bytes - Viewed (0) -
cni/pkg/nodeagent/pod_cache_test.go
ns2 := newFakeNsInode(inc(), 1) wl2 := WorkloadInfo{ Workload: podToWorkload(pod), Netns: ns2, } // when using same uid, the original netns should be returned netns2 := p.UpsertPodCacheWithNetns(string(pod.UID), wl2) if netns2 != ns { t.Fatalf("Expected the original Netns for the same uid, got %p and %p", netns2, ns) } if !ns2.closed.Load() { t.Fatalf("Expected the second Netns to be closed") } }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 4.2K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/route.go
shouldDelete.Insert(h) } stripPartial := strings.TrimSuffix(h, ".svc") if unique.Contains(stripPartial) && stripPartial != h { shouldDelete.Insert(h) } } // Filter from original list to keep original order ret := make([]string, 0, len(domains)) for _, h := range domains { if !shouldDelete.Contains(h) { ret = append(ret, h) } } return ret }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu May 11 05:38:17 GMT 2023 - 7.2K bytes - Viewed (0) -
cni/pkg/plugin/cnieventclient.go
for _, ipc := range prevResIps { ncconfigs = append(ncconfigs, nodeagent.IPConfig{Interface: ipc.Interface, Address: ipc.Address, Gateway: ipc.Gateway}) } // Currently we only use the netns from the original CNI event addEvent := nodeagent.CNIPluginAddEvent{Netns: event.Netns, PodName: podName, PodNamespace: podNamespace, IPs: ncconfigs} eventData, err := json.Marshal(addEvent) if err != nil { return err }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 2.4K bytes - Viewed (0)