Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for nsNameList (0.29 sec)

  1. istioctl/pkg/completion/completion.go

    	nsList, err := getNamespaces(ctx, kubeClient)
    	if err != nil {
    		return nil, err
    	}
    
    	var nsNameList []string
    	for _, ns := range nsList {
    		if toComplete == "" || strings.HasPrefix(ns.Name, toComplete) {
    			nsNameList = append(nsNameList, ns.Name)
    		}
    	}
    
    	return nsNameList, nil
    }
    
    func getNamespaces(ctx context.Context, client kube.CLIClient) ([]corev1.Namespace, error) {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 4.9K bytes
    - Viewed (0)
Back to top