Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for CLIClient (0.1 sec)

  1. istioctl/pkg/cli/context.go

    			cliclient = kube.NewFakeClient(f.objects...)
    		}
    		if rev != "" {
    			kube.SetRevisionForTest(cliclient, rev)
    		}
    		c := MockClient{
    			CLIClient: cliclient,
    			Results:   f.results,
    		}
    		f.clients[rev] = c
    	}
    	return f.clients[rev], nil
    }
    
    func (f *fakeInstance) CLIClient() (kube.CLIClient, error) {
    	return f.CLIClientWithRevision("")
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 23 19:31:32 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. 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 {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. istioctl/pkg/waypoint/waypoint.go

    	}
    	return nil
    }
    
    func namespaceHasLabel(kubeClient kube.CLIClient, ns string, label string) (bool, error) {
    	nsObj, err := getNamespace(kubeClient, ns)
    	if err != nil {
    		return false, err
    	}
    	if nsObj.Labels == nil {
    		return false, nil
    	}
    	return nsObj.Labels[label] != "", nil
    }
    
    func namespaceHasLabelWithValue(kubeClient kube.CLIClient, ns string, label, labelValue string) (bool, error) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. istioctl/pkg/multicluster/remote_secret.go

        | kubectl --kubeconfig=c1.yaml apply -f -`,
    		Args: cobra.NoArgs,
    		RunE: func(c *cobra.Command, args []string) error {
    			if err := opts.prepare(ctx); err != nil {
    				return err
    			}
    			client, err := ctx.CLIClient()
    			if err != nil {
    				return err
    			}
    			out, warn, err := CreateRemoteSecret(client, opts)
    			if err != nil {
    				_, _ = fmt.Fprintf(c.OutOrStderr(), "error: %v\n", err)
    				return err
    			}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  5. istioctl/pkg/multixds/gather.go

    	ns string, serviceAccount string, kubeClient kube.CLIClient, options Options,
    ) (map[string]*discovery.DiscoveryResponse, error) {
    	return MultiRequestAndProcessXds(false, dr, centralOpts, istioNamespace, ns, serviceAccount, kubeClient, options)
    }
    
    type xdsAddr struct {
    	gcpProject, host, istiod string
    }
    
    func getXdsAddressFromWebhooks(client kube.CLIClient) (*xdsAddr, error) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. istioctl/pkg/proxyconfig/proxyconfig.go

    	"error":    ErrorLevel,
    	"critical": CriticalLevel,
    	"off":      OffLevel,
    }
    
    var (
    	loggerLevelString = ""
    	reset             = false
    )
    
    func extractConfigDump(kubeClient kube.CLIClient, podName, podNamespace string, eds bool) ([]byte, error) {
    	path := "config_dump"
    	if eds {
    		path += "?include_eds=true"
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 15:53:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
  7. istioctl/pkg/precheck/precheck.go

    			return nil, err
    		}
    		if err := checkTracing(cli, &messages); err != nil {
    			return nil, err
    		}
    	}
    	return messages, nil
    }
    
    func checkTracing(cli kube.CLIClient, messages *diag.Messages) error {
    	// In 1.22, we remove the default tracing config which points to zipkin.istio-system
    	// This has no effect for users, unless they have this service.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 02:31:32 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. istioctl/pkg/cli/kubectl_factory.go

    }
    
    var _ util.Factory = Factory{}
    
    // MakeKubeFactory turns a partial kubetl factory from CLIClient into a full util.Factory
    // This is done under istioctl/ to avoid excessive binary bloat in other packages; this pulls in around 10mb of
    // dependencies.
    var MakeKubeFactory = func(k kube.CLIClient) util.Factory {
    	kf := k.UtilFactory()
    	return Factory{
    		PartialFactory: kf,
    		full:           util.NewFactory(kf),
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jun 09 18:17:49 UTC 2023
    - 2K bytes
    - Viewed (0)
  9. istioctl/pkg/kubeinject/kubeinject.go

    	"istio.io/istio/pkg/version"
    )
    
    const (
    	configMapKey       = "mesh"
    	injectConfigMapKey = "config"
    	valuesConfigMapKey = "values"
    )
    
    type ExternalInjector struct {
    	client          kube.CLIClient
    	clientConfig    *admissionregistration.WebhookClientConfig
    	injectorAddress string
    }
    
    func (e ExternalInjector) Inject(pod *corev1.Pod, deploymentNS string) ([]byte, error) {
    	cc := e.clientConfig
    	if cc == nil {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 21K bytes
    - Viewed (0)
  10. istioctl/pkg/injector/injector-list.go

    		if inject.IgnoredNamespaces.Contains(ns.Name) || ns.Name == istioNamespace {
    			continue
    		}
    		filtered = append(filtered, ns)
    	}
    	return filtered
    }
    
    func getNamespaces(ctx context.Context, client kube.CLIClient, istioNamespace string) ([]corev1.Namespace, error) {
    	nsList, err := client.Kube().CoreV1().Namespaces().List(ctx, metav1.ListOptions{})
    	if err != nil {
    		return []corev1.Namespace{}, err
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Oct 18 11:39:52 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top