- Sort Score
- Result 10 results
- Languages All
Results 11 - 17 of 17 for UID (0.12 sec)
-
cni/pkg/nodeagent/podcgroupns.go
// dashes, which is how the UID is represented within Kubernetes. func canonicalizePodUID(uid string) types.UID { return types.UID(strings.Map(func(r rune) rune { if unicode.IsPunct(r) { r = '-' } return r }, uid)) } // Cgroup represents a linux cgroup. type Cgroup struct { HierarchyID string ControllerList string GroupPath string }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 11K bytes - Viewed (0) -
cni/pkg/nodeagent/pod_cache_test.go
pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{UID: "testUID"}} ns := newFakeNs(inc()) wl := WorkloadInfo{ Workload: podToWorkload(pod), Netns: ns, } netns1 := p.UpsertPodCacheWithNetns(string(pod.UID), wl) netnsTaken := p.Take(string(pod.UID)) if netns1 != netnsTaken { t.Fatalf("Expected the original Netns for the same uid, got %p and %p", netns1, ns) } if nil != p.Take(string(pod.UID)) {
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) -
cni/pkg/plugin/plugin_dryrun_test.go
}, { name: "custom-uid", annotations: map[string]string{annotation.SidecarStatus.Name: "true"}, customUID: &customUID, customGID: &customGID, golden: filepath.Join(env.IstioSrc, "cni/pkg/plugin/testdata/custom-uid.txt.golden"), }, { name: "custom-uid-zero", annotations: map[string]string{annotation.SidecarStatus.Name: "true"},
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Feb 10 00:31:55 GMT 2024 - 8.4K bytes - Viewed (0) -
cni/pkg/nodeagent/fakes_test.go
type fakeZtunnel struct { deletedPods atomic.Int32 addedPods atomic.Int32 addError error } func (f *fakeZtunnel) Run(ctx context.Context) { } func (f *fakeZtunnel) PodDeleted(ctx context.Context, uid string) error { f.deletedPods.Add(1) return nil } func (f *fakeZtunnel) PodAdded(ctx context.Context, pod *corev1.Pod, netns Netns) error { f.addedPods.Add(1) return f.addError }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 3.9K bytes - Viewed (0) -
istioctl/pkg/multicluster/remote_secret_test.go
"istio.io/istio/pkg/kube/multicluster" "istio.io/istio/pkg/test" "istio.io/istio/pkg/test/env" ) var ( kubeSystemNamespaceUID = types.UID("54643f96-eca0-11e9-bb97-42010a80000a") kubeSystemNamespace = &v1.Namespace{ ObjectMeta: metav1.ObjectMeta{ Name: "kube-system", UID: kubeSystemNamespaceUID, }, } ) const ( testNamespace = "istio-system-test"
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Oct 31 14:48:28 GMT 2023 - 20.6K bytes - Viewed (0) -
istioctl/pkg/multicluster/remote_secret.go
// generate the clusterName if not specified if opt.ClusterName == "" { uid, err := clusterUID(client.Kube()) if err != nil { return nil, nil, err } opt.ClusterName = string(uid) } var secretName string switch opt.Type { case SecretTypeRemote: secretName = remoteSecretNameFromClusterName(opt.ClusterName)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Oct 11 01:43:17 GMT 2023 - 24K bytes - Viewed (0) -
istioctl/pkg/describe/describe.go
if container.SecurityContext != nil && container.SecurityContext.RunAsUser != nil { if *container.SecurityContext.RunAsUser == UserID { fmt.Fprintf(writer, "WARNING: User ID (UID) 1337 is reserved for the sidecar proxy.\n") } } } } fmt.Fprintf(writer, "Pod: %s\n", kname(pod.ObjectMeta)) fmt.Fprintf(writer, " Pod Revision: %s\n", revision) if len(ports) > 0 {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Apr 13 05:23:38 GMT 2024 - 50.4K bytes - Viewed (0)