- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 57 for Pod (0.11 sec)
-
cni/pkg/plugin/plugin_test.go
} func TestCmdAddTwoContainersWithLabel(t *testing.T) { pod, ns := buildFakePodAndNSForClient() pod.Spec.Containers[0].Name = "mockContainer" pod.Spec.Containers[1].Name = "istio-proxy" pod.ObjectMeta.Annotations[label.SidecarInject.Name] = "false" testDoAddRun(t, buildMockConf(true, ""), testNSName, pod, ns) } func TestCmdAddTwoContainers(t *testing.T) {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed May 08 15:58:51 GMT 2024 - 17.5K bytes - Viewed (0) -
cni/pkg/nodeagent/informers_test.go
mt.Assert(EventTotals.Name(), map[string]string{"type": "update"}, monitortest.AtLeast(4)) waitForMockCalls() assertPodNotAnnotated(t, client, pod) // patch a test label to emulate a POD update event _, err = client.Kube().CoreV1().Pods(pod.Namespace).Patch(ctx, pod.Name, types.MergePatchType, []byte(`{"metadata":{"labels":{"test":"update"}}}`), metav1.PatchOptions{})
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri May 03 19:29:42 GMT 2024 - 15.8K bytes - Viewed (0) -
cni/pkg/nodeagent/net.go
log := log.WithLabels("ns", pod.Namespace, "name", pod.Name) log.Debug("Pod is now stopped... cleaning up.") if err := removePodFromHostNSIpset(pod, &s.hostsideProbeIPSet); err != nil { log.Errorf("failed to remove pod %s from host ipset, error was: %v", pod.Name, err) return err } log.Info("in pod mode - deleting pod from ztunnel")
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) -
cni/pkg/nodeagent/informers.go
func (s *InformerHandlers) GetAmbientPods() []*corev1.Pod { var pods []*corev1.Pod for _, pod := range s.pods.List(metav1.NamespaceAll, klabels.Everything()) { ns := s.namespaces.Get(pod.Namespace, "") if ns == nil { log.Warnf("failed to find namespace %s for pod %s", pod.Namespace, pod.Name) } if !util.IsZtunnelPod(s.systemNamespace, pod) && util.PodRedirectionEnabled(ns, pod) { pods = append(pods, 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) -
cni/pkg/util/podutil_test.go
pod := &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "test", Namespace: "test", }, Spec: corev1.PodSpec{ NodeName: "derp", }, Status: corev1.PodStatus{ PodIP: "2.2.2.2", PodIPs: []corev1.PodIP{{IP: "2.2.2.2"}, {IP: "3.3.3.3"}}, }, } podIPs := GetPodIPsIfPresent(pod) assert.Equal(t, len(podIPs), 2) } func TestGetPodIPsIfNoPodIPPresent(t *testing.T) { pod := &corev1.Pod{
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri May 03 19:29:42 GMT 2024 - 4.9K bytes - Viewed (0) -
cni/pkg/nodeagent/net_test.go
} pod := &corev1.Pod{ObjectMeta: podMeta} fixture.ipsetDeps.On("listEntriesByIP", "foo-v4", ).Return([]netip.Addr{}, nil) err := netServer.ConstructInitialSnapshot([]*corev1.Pod{pod}) assert.NoError(t, err) if fixture.podNsMap.Get("863b91d4-4b68-4efa-917f-4b560e3e86aa") == nil { t.Fatal("expected pod to be in cache") } }
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) -
cni/pkg/nodeagent/server.go
ConstructInitialSnapshot(ambientPods []*corev1.Pod) error Start(ctx context.Context) // IsPodInMesh(ctx context.Context, pod *metav1.ObjectMeta, netNs string) (bool, error) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error RemovePodFromMesh(ctx context.Context, pod *corev1.Pod) error DelPodFromMesh(ctx context.Context, pod *corev1.Pod) error Stop() } type Server struct {
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) -
cni/README.md
- one end of the socket is in the application pod - and the other end is in ztunnel's pod and setting up iptables rules to funnel traffic thru that socket "tube" to ztunnel and back. This effectively behaves like ztunnel is an in-pod sidecar, without actually requiring the injection of ztunnel as a sidecar into the pod manifest, or mutatating the application pod in any way.
Plain Text - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri May 03 19:29:42 GMT 2024 - 12.3K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig.go
Long: `Retrieve information about cluster configuration for the Envoy instance in the specified pod.`, Example: ` # Retrieve summary about cluster configuration for a given pod from Envoy. istioctl proxy-config clusters <pod-name[.namespace]> # Retrieve cluster summary for clusters with port 9080. istioctl proxy-config clusters <pod-name[.namespace]> --port 9080
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 16 03:28:36 GMT 2024 - 48K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/testdata/dump.json
}, "endpoints": { "Kubernetes//Pod/bookinfo/reviews-v2-5b667bcbf8-q5pn2:/10.244.1.38": { "workloadUid": "Kubernetes//Pod/bookinfo/reviews-v2-5b667bcbf8-q5pn2", "service": "bookinfo/reviews.bookinfo.svc.cluster.local", "address": "/10.244.1.38", "port": { "9080": 9080 } }, "Kubernetes//Pod/bookinfo/reviews-v1-5b5d6494f4-qwjv4:/10.244.1.37": {
Json - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 16 03:28:36 GMT 2024 - 33.1K bytes - Viewed (0)