Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CLIClient (0.19 sec)

  1. istioctl/pkg/completion/completion.go

    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/pkg/kube"
    )
    
    func getPodsNameInDefaultNamespace(ctx cli.Context, toComplete string) ([]string, error) {
    	client, err := ctx.CLIClient()
    	if err != nil {
    		return nil, err
    	}
    	ns := ctx.NamespaceOrDefault(ctx.Namespace())
    	podList, err := client.Kube().CoreV1().Pods(ns).List(context.Background(), metav1.ListOptions{})
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 4.9K bytes
    - Viewed (0)
Back to top