Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for UsageString (0.2 sec)

  1. istioctl/pkg/proxyconfig/proxyconfig.go

    		Aliases: []string{"o"},
    		Args: func(cmd *cobra.Command, args []string) error {
    			if labelSelector == "" && len(args) < 1 {
    				cmd.Println(cmd.UsageString())
    				return fmt.Errorf("log requires pod name or --selector")
    			}
    			if reset && loggerLevelString != "" {
    				cmd.Println(cmd.UsageString())
    				return fmt.Errorf("--level cannot be combined with --reset")
    			}
    			if outputFormat != "" && outputFormat != summaryOutput {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
  2. istioctl/pkg/dashboard/dashboard.go

    				return fmt.Errorf("failed to create k8s client: %v", err)
    			}
    			if labelSelector == "" && len(args) < 1 {
    				c.Println(c.UsageString())
    				return fmt.Errorf("specify a pod or --selector")
    			}
    
    			if labelSelector != "" && len(args) > 0 {
    				c.Println(c.UsageString())
    				return fmt.Errorf("name cannot be provided when a selector is specified")
    			}
    
    			if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  3. istioctl/pkg/admin/istiodconfig.go

    		Args: func(logCmd *cobra.Command, args []string) error {
    			if istiodReset && outputLogLevel != "" {
    				logCmd.Println(logCmd.UsageString())
    				return fmt.Errorf("--level cannot be combined with --reset")
    			}
    			if istiodReset && stackTraceLevel != "" {
    				logCmd.Println(logCmd.UsageString())
    				return fmt.Errorf("--stack-trace-level cannot be combined with --reset")
    			}
    			return nil
    		},
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  4. istioctl/pkg/checkinject/checkinject.go

      istioctl x check-inject -n test -l app=helloworld,version=v1
    `,
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) == 0 && labelPairs == "" || len(args) > 1 {
    				cmd.Println(cmd.UsageString())
    				return fmt.Errorf("check-inject requires only [<resource-type>/]<resource-name>[.<namespace>], or specify labels flag")
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  5. istioctl/pkg/authz/authz.go

      # Check AuthorizationPolicy from Envoy config dump file:
      istioctl x authz check -f httpbin_config_dump.json`,
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) > 1 {
    				cmd.Println(cmd.UsageString())
    				return fmt.Errorf("check requires only <pod-name>[.<pod-namespace>]")
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			kubeClient, err := ctx.CLIClient()
    			if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 5K bytes
    - Viewed (0)
  6. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    		Args: func(cmd *cobra.Command, args []string) error {
    			if err := common.validateArgs(cmd, args); err != nil {
    				return err
    			}
    			if reset && loggerLevelString != "" {
    				cmd.Println(cmd.UsageString())
    				return fmt.Errorf("--level cannot be combined with --reset")
    			}
    			if common.outputFormat != "" && common.outputFormat != summaryOutput {
    				return fmt.Errorf("--output is not applicable for this command")
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  7. istioctl/pkg/metrics/metrics.go

    		// nolint: goimports
    		Aliases: []string{"m"},
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) < 1 {
    				cmd.Println(cmd.UsageString())
    				return fmt.Errorf("metrics requires workload name")
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			return run(cmd, ctx, args)
    		},
    		DisableFlagsInUseLine: true,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. istioctl/pkg/describe/describe.go

    the configuration objects that affect that service.`,
    		Example: `  istioctl experimental describe service productpage`,
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 1 {
    				cmd.Println(cmd.UsageString())
    				return fmt.Errorf("expecting service name")
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			describeNamespace = ctx.NamespaceOrDefault(ctx.Namespace())
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
Back to top