Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for InferPodInfoFromTypedResource (0.53 sec)

  1. istioctl/pkg/cli/context.go

    	CLIClient() (kube.CLIClient, error)
    	// CLIClientWithRevision returns a client for the given revision
    	CLIClientWithRevision(rev string) (kube.CLIClient, error)
    	// InferPodInfoFromTypedResource returns the pod name and namespace for the given typed resource
    	InferPodInfoFromTypedResource(name, namespace string) (pod string, ns string, err error)
    	// InferPodsFromTypedResource returns the pod names and namespace for the given typed resource
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. istioctl/pkg/dashboard/dashboard.go

    				}
    
    				// only use the first pod in the list
    				podName = pl.Items[0].Name
    				ns = pl.Items[0].Namespace
    			} else {
    				podName, ns, err = ctx.InferPodInfoFromTypedResource(args[0], ctx.NamespaceOrDefault(ctx.Namespace()))
    				if err != nil {
    					return err
    				}
    			}
    
    			return portForward(podName, ns, fmt.Sprintf("Envoy sidecar %s", podName),
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  3. istioctl/pkg/util/handlers/handlers.go

    	sortBy func([]*corev1.Pod) sort.Interface) (*corev1.Pod, int, error)
    
    // InferPodInfoFromTypedResource gets a pod name, from an expression like Deployment/httpbin, or Deployment/productpage-v1.bookinfo
    func InferPodInfoFromTypedResource(name, defaultNS string, factory cmdutil.Factory) (string, string, error) {
    	resname, ns := inferNsInfo(name, defaultNS)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Feb 06 15:01:41 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  4. istioctl/pkg/authz/authz.go

    				if err != nil {
    					return fmt.Errorf("failed to get config dump from file %s: %s", configDumpFile, err)
    				}
    			} else if len(args) == 1 {
    				podName, podNamespace, err := ctx.InferPodInfoFromTypedResource(args[0], ctx.Namespace())
    				if err != nil {
    					return err
    				}
    				configDump, err = getConfigDumpFromPod(kubeClient, podName, podNamespace)
    				if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 5K bytes
    - Viewed (0)
  5. istioctl/pkg/proxystatus/proxystatus.go

    			if err != nil {
    				return err
    			}
    			multiXdsOpts.MessageWriter = c.OutOrStdout()
    
    			if len(args) > 0 {
    				podName, ns, err := ctx.InferPodInfoFromTypedResource(args[0], ctx.Namespace())
    				if err != nil {
    					return err
    				}
    				if ambient.IsZtunnelPod(kubeClient, podName, ns) {
    					_, _ = fmt.Fprintf(c.OutOrStdout(),
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  6. istioctl/pkg/util/handlers/handlers_test.go

    		*corev1.Pod, int, error,
    	) {
    		return attachPod(namespace), 1, nil
    	}
    	for _, tt := range tests {
    		t.Run(strings.Split(tt.name, ".")[0], func(t *testing.T) {
    			gotPodName, gotNamespace, err := InferPodInfoFromTypedResource(tt.name, "test", factory)
    			assert.NoError(t, err)
    			if gotPodName != tt.wantPodName || gotNamespace != tt.wantNamespace {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jun 09 18:17:49 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  7. istioctl/pkg/checkinject/checkinject.go

    			kubeClient, err := ctx.CLIClient()
    			if err != nil {
    				return err
    			}
    			var podName, podNs string
    			var podLabels, nsLabels map[string]string
    			if len(args) == 1 {
    				podName, podNs, err = ctx.InferPodInfoFromTypedResource(args[0], ctx.Namespace())
    				if err != nil {
    					return err
    				}
    				pod, err := kubeClient.Kube().CoreV1().Pods(podNs).Get(context.TODO(), podName, metav1.GetOptions{})
    				if err != nil {
    					return err
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  8. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    }
    
    func getPodNameWithNamespace(ctx cli.Context, podflag, ns string) (string, string, error) {
    	var podName, podNamespace string
    	podName, podNamespace, err := ctx.InferPodInfoFromTypedResource(podflag, ns)
    	if err != nil {
    		return "", "", err
    	}
    	return podName, podNamespace, nil
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  9. istioctl/pkg/proxyconfig/proxyconfig.go

    }
    
    func getPodNameWithNamespace(ctx cli.Context, podflag, ns string) (string, string, error) {
    	var podName, podNamespace string
    	podName, podNamespace, err := ctx.InferPodInfoFromTypedResource(podflag, ns)
    	if err != nil {
    		return "", "", err
    	}
    	return podName, podNamespace, nil
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
Back to top