Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 283 for podname (0.12 sec)

  1. istioctl/pkg/util/handlers/handlers_test.go

    			gotPodName, gotNamespace := InferPodInfo(tt.proxyName, tt.namespace)
    			if gotPodName != tt.wantPodName || gotNamespace != tt.wantNamespace {
    				t.Errorf("unexpected podName and namespace: wanted %v %v got %v %v", tt.wantPodName, tt.wantNamespace, gotPodName, gotNamespace)
    			}
    		})
    	}
    }
    
    func TestInferPodInfoFromTypedResource(t *testing.T) {
    	tests := []struct {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jun 09 18:17:49 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  2. cni/pkg/repair/repair_test.go

    	"istio.io/istio/tools/istio-iptables/pkg/constants"
    )
    
    func TestMatchesFilter(t *testing.T) {
    	makeDetectPod := func(name string, terminationMessage string, exitCode int) *corev1.Pod {
    		return makePod(makePodArgs{
    			PodName:     name,
    			Annotations: map[string]string{"sidecar.istio.io/status": "something"},
    			InitContainerStatus: &corev1.ContainerStatus{
    				Name: constants.ValidationContainerName,
    				State: corev1.ContainerState{
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/informers.go

    // * the pod, if it is found and ambient is enabled
    func (s *InformerHandlers) GetPodIfAmbient(podName, podNamespace string) (*corev1.Pod, error) {
    	ns := s.namespaces.Get(podNamespace, "")
    	if ns == nil {
    		return nil, fmt.Errorf("failed to find namespace %v", ns)
    	}
    	pod := s.pods.Get(podName, podNamespace)
    	if pod == nil {
    		return nil, fmt.Errorf("failed to find pod %v", ns)
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. cni/pkg/plugin/plugin_test.go

    		testServer.Close()
    		return cniAddServerCalled
    	}
    }
    
    func buildCmdArgs(stdinData, podName, podNamespace string) *skel.CmdArgs {
    	return &skel.CmdArgs{
    		ContainerID: "testContainerID",
    		Netns:       testSandboxDirectory,
    		IfName:      "eth0",
    		Args:        fmt.Sprintf("K8S_POD_NAMESPACE=%s;K8S_POD_NAME=%s", podNamespace, podName),
    		Path:        "/tmp",
    		StdinData:   []byte(stdinData),
    	}
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. istioctl/pkg/proxystatus/proxystatus_test.go

    			args:          strings.Split("deployment/random-gibberish.bogus", " "),
    			wantException: true,
    		},
    		{ // case 5: supplying nonexistent pod name should result in error
    			args:          strings.Split("random-gibberish-podname-61789237418234", " "),
    			wantException: true,
    		},
    		{ // case 6: new --revision argument
    			args:           strings.Split("--revision canary", " "),
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. cni/pkg/plugin/cnieventclient_test.go

    		defer req.Body.Close()
    		data, err := io.ReadAll(req.Body)
    		assert.NoError(t, err)
    
    		var msg nodeagent.CNIPluginAddEvent
    		err = json.Unmarshal(data, &msg)
    		assert.NoError(t, err)
    		assert.Equal(t, msg.PodName, testPod)
    		assert.Equal(t, msg.PodNamespace, testNS)
    		assert.Equal(t, msg.Netns, fakeCmdArgs.Netns)
    		res.WriteHeader(http.StatusOK)
    		res.Write([]byte("server happy"))
    	}))
    	defer func() { testServer.Close() }()
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jul 02 18:48:50 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. istioctl/pkg/multixds/gather.go

    		}
    		slice := strings.SplitN(dr.ResourceNames[0], ".", 2)
    		if len(slice) != 2 {
    			return nil, fmt.Errorf("invalid resource name format: %v", slice)
    		}
    		podName := slice[0]
    		ns := slice[1]
    		pod, err := kubeClient.Kube().CoreV1().Pods(ns).Get(context.TODO(), podName, metav1.GetOptions{})
    		if err != nil {
    			return nil, err
    		}
    		resp, err := queryToOnePod(pod)
    		if err != nil {
    			return nil, err
    		}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  8. istioctl/pkg/describe/describe.go

    			if len(args) != 1 {
    				return fmt.Errorf("expecting pod name")
    			}
    
    			podName, ns := handlers.InferPodInfo(args[0], ctx.NamespaceOrDefault(""))
    
    			client, err := ctx.CLIClient()
    			if err != nil {
    				return err
    			}
    			pod, err := client.Kube().CoreV1().Pods(ns).Get(context.TODO(), podName, metav1.GetOptions{})
    			if err != nil {
    				return err
    			}
    
    			writer := cmd.OutOrStdout()
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/storage/v1beta1/generated.proto

      optional string attacher = 1;
    
      // source represents the volume that should be attached.
      optional VolumeAttachmentSource source = 2;
    
      // nodeName represents the node that the volume should be attached to.
      optional string nodeName = 3;
    }
    
    // VolumeAttachmentStatus is the status of a VolumeAttachment request.
    message VolumeAttachmentStatus {
      // attached indicates the volume is successfully attached.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/storage/v1/generated.proto

      optional string attacher = 1;
    
      // source represents the volume that should be attached.
      optional VolumeAttachmentSource source = 2;
    
      // nodeName represents the node that the volume should be attached to.
      optional string nodeName = 3;
    }
    
    // VolumeAttachmentStatus is the status of a VolumeAttachment request.
    message VolumeAttachmentStatus {
      // attached indicates the volume is successfully attached.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top