Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for HasPrefix (0.26 sec)

  1. istioctl/pkg/completion/completion.go

    	if err != nil {
    		return nil, err
    	}
    
    	var podsName []string
    	for _, pod := range podList.Items {
    		if toComplete == "" || strings.HasPrefix(pod.Name, toComplete) {
    			podsName = append(podsName, pod.Name)
    		}
    	}
    
    	return podsName, nil
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  2. istioctl/pkg/util/ambient/util.go

    	"istio.io/api/label"
    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/kube"
    )
    
    func IsZtunnelPod(client kube.CLIClient, podName, podNamespace string) bool {
    	isZtunnel := strings.HasPrefix(podName, "ztunnel")
    	if client == nil {
    		return isZtunnel
    	}
    	pod, err := client.Kube().CoreV1().Pods(podNamespace).Get(context.Background(), podName, metav1.GetOptions{})
    	if err != nil {
    		return isZtunnel
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/envoy/configdump/route.go

    		return ""
    	}
    	config, ok := istioMetadata.Fields["config"]
    	if !ok {
    		return ""
    	}
    	return renderConfig(config.GetStringValue())
    }
    
    func renderConfig(configPath string) string {
    	if strings.HasPrefix(configPath, "/apis/networking.istio.io/v1alpha3/namespaces/") {
    		pieces := strings.Split(configPath, "/")
    		if len(pieces) != 8 {
    			return ""
    		}
    		return fmt.Sprintf("%s.%s", pieces[7], pieces[5])
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu May 11 05:38:17 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  4. cni/pkg/plugin/plugin_dryrun_test.go

    	tables := make(map[string]string)
    	for _, table := range parts {
    		// If table is not empty, get table name from the first line
    		lines := strings.Split(strings.Trim(table, "\n"), "\n")
    		if len(lines) >= 1 && strings.HasPrefix(lines[0], "* ") {
    			tableName := lines[0][2:]
    			lines = append(lines, "COMMIT")
    			tables[tableName] = strings.Join(lines, "\n")
    		}
    	}
    	return tables
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  5. istioctl/pkg/describe/describe.go

    		routeTyped := &route.RouteConfiguration{}
    		err = rcd.RouteConfig.UnmarshalTo(routeTyped)
    		if err != nil {
    			return "", err
    		}
    		if routeTyped.Name != sPort && !strings.HasPrefix(routeTyped.Name, "http.") &&
    			!strings.HasPrefix(routeTyped.Name, "https.") {
    			continue
    		}
    
    		for _, vh := range routeTyped.VirtualHosts {
    			for _, route := range vh.Routes {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
Back to top