Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for CLIClientWithRevision (0.41 sec)

  1. istioctl/pkg/metrics/metrics.go

    	p50Latency, p90Latency, p99Latency time.Duration
    }
    
    func run(c *cobra.Command, ctx cli.Context, args []string) error {
    	log.Debugf("metrics command invoked for workload(s): %v", args)
    
    	client, err := ctx.CLIClientWithRevision(metricsOpts.Revision)
    	if err != nil {
    		return fmt.Errorf("failed to create k8s client: %v", err)
    	}
    
    	pl, err := client.PodsForSelector(context.TODO(), ctx.IstioNamespace(), "app.kubernetes.io/name=prometheus")
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. istioctl/pkg/describe/describe.go

    					kname(pod.ObjectMeta))
    			}
    			// TODO look for port collisions between services targeting this pod
    
    			kubeClient, err := ctx.CLIClientWithRevision(opts.Revision)
    			if err != nil {
    				return err
    			}
    
    			configClient := client.Istio()
    
    			podsLabels := []klabels.Set{klabels.Set(pod.ObjectMeta.Labels)}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload_test.go

    	var out bytes.Buffer
    	ctx := cli.NewFakeContext(&cli.NewFakeContextOption{
    		IstioNamespace: "istio-system",
    	})
    	rootCmd := Cmd(ctx)
    	rootCmd.SetArgs(args)
    	client, err := ctx.CLIClientWithRevision(rev)
    	if err != nil {
    		return "", err
    	}
    	createResourceFunc(client)
    
    	rootCmd.SetOut(&out)
    	rootCmd.SetErr(&out)
    	err = rootCmd.Execute()
    	output := out.String()
    	return output, err
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 20:04:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. istioctl/pkg/precheck/precheck.go

    		"check changes since the provided version")
    	opts.AttachControlPlaneFlags(cmd)
    	return cmd
    }
    
    func checkFromVersion(ctx cli.Context, revision, version string) (diag.Messages, error) {
    	cli, err := ctx.CLIClientWithRevision(revision)
    	if err != nil {
    		return nil, err
    	}
    	major, minors, ok := strings.Cut(version, ".")
    	if !ok {
    		return nil, fmt.Errorf("invalid version %v, expected format like '1.0'", version)
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 02:31:32 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  5. istioctl/pkg/waypoint/waypoint.go

      # Apply a waypoint to a specific namespace and wait for it to be ready
      istioctl waypoint apply --namespace default --wait`,
    		RunE: func(cmd *cobra.Command, args []string) error {
    			kubeClient, err := ctx.CLIClientWithRevision(revision)
    			if err != nil {
    				return fmt.Errorf("failed to create Kubernetes client: %v", err)
    			}
    			ns := ctx.NamespaceOrDefault(ctx.Namespace())
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  6. istioctl/pkg/workload/workload.go

    			}
    			if outputDir == "" {
    				return fmt.Errorf("expecting an output directory")
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			kubeClient, err := ctx.CLIClientWithRevision(opts.Revision)
    			if err != nil {
    				return err
    			}
    
    			wg := &clientnetworking.WorkloadGroup{}
    			if filename != "" {
    				if err := readWorkloadGroup(filename, wg); err != nil {
    					return err
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 25.3K bytes
    - Viewed (0)
Back to top