Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for InferPodsFromTypedResource (0.27 sec)

  1. istioctl/pkg/cli/context.go

    	InferPodInfoFromTypedResource(name, namespace string) (pod string, ns string, err error)
    	// InferPodsFromTypedResource returns the pod names and namespace for the given typed resource
    	InferPodsFromTypedResource(name, namespace string) ([]string, string, error)
    	// Namespace returns the namespace specified by the user
    	Namespace() string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. istioctl/pkg/util/handlers/handlers.go

    	}
    	separator := strings.LastIndex(name, ".")
    	if separator < 0 {
    		return name, namespace
    	}
    
    	return name[0:separator], name[separator+1:]
    }
    
    func InferPodsFromTypedResource(name, defaultNS string, factory cmdutil.Factory) ([]string, string, error) {
    	resname, ns := inferNsInfo(name, defaultNS)
    	if !strings.Contains(resname, "/") {
    		return []string{resname}, ns, nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 06 15:01:41 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    				}
    				podNames = []string{podName}
    				podNamespace = ns
    			} else {
    				var err error
    				podNames, podNamespace, err = ctx.InferPodsFromTypedResource("daemonset/ztunnel", ctx.IstioNamespace())
    				if err != nil {
    					return err
    				}
    			}
    
    			destLoggerLevels := map[string]Level{}
    			if reset {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 22K bytes
    - Viewed (0)
  4. istioctl/pkg/proxyconfig/proxyconfig.go

    	configCmd.AddCommand(ecdsConfigCmd(ctx))
    
    	return configCmd
    }
    
    func getPodNames(ctx cli.Context, podflag, ns string) ([]string, string, error) {
    	podNames, ns, err := ctx.InferPodsFromTypedResource(podflag, ns)
    	if err != nil {
    		log.Errorf("pods lookup failed")
    		return []string{}, "", err
    	}
    	return podNames, ns, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 03:28:36 UTC 2024
    - 48K bytes
    - Viewed (0)
Back to top