Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for CLIClientWithRevision (0.1 sec)

  1. istioctl/pkg/dashboard/dashboard.go

    		Example: `  istioctl dashboard prometheus
    
      # with short syntax
      istioctl dash prometheus
      istioctl d prometheus`,
    		RunE: func(cmd *cobra.Command, args []string) error {
    			client, err := ctx.CLIClientWithRevision(opts.Revision)
    			if err != nil {
    				return fmt.Errorf("failed to create k8s client: %v", err)
    			}
    
    			name, namespace, err := inferPodMeta(ctx, client, "app.kubernetes.io/name=prometheus")
    			if err != nil {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Apr 15 01:29:35 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  2. istioctl/pkg/admin/istiodconfig.go

    				return fmt.Errorf("--stack-trace-level cannot be combined with --reset")
    			}
    			return nil
    		},
    		RunE: func(logCmd *cobra.Command, args []string) error {
    			client, err := ctx.CLIClientWithRevision(opts.Revision)
    			if err != nil {
    				return fmt.Errorf("failed to create k8s client: %v", err)
    			}
    
    			var podName, ns string
    			if len(args) == 0 {
    				if opts.Revision == "" {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. istioctl/pkg/injector/injector-list.go

    		Long:    `List sidecar injector and sidecar versions`,
    		Example: `  istioctl experimental injector list`,
    		RunE: func(cmd *cobra.Command, args []string) error {
    			client, err := ctx.CLIClientWithRevision(opts.Revision)
    			if err != nil {
    				return fmt.Errorf("failed to create k8s client: %v", err)
    			}
    
    			nsList, err := getNamespaces(context.Background(), client, ctx.IstioNamespace())
    			if err != nil {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Oct 18 11:39:52 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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