Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for cobra (0.06 sec)

  1. cmd/kubeadm/app/cmd/phases/workflow/runner_test.go

    					fail: []string{"one", "two"},
    					args: cobra.ExactArgs(3),
    				},
    			},
    			cmd: &cobra.Command{
    				Use:  "init",
    				Args: cobra.ExactArgs(3),
    			},
    		},
    		{
    			name: "container cmd expect none, custom arg check for leaf",
    			runner: Runner{
    				Phases: []Phase{phaseBuilder6("foo", cobra.NoArgs,
    					phaseBuilder6("bar", cobra.ExactArgs(1)),
    					phaseBuilder6("baz", customArgs),
    				)},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 20 20:03:45 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  2. istioctl/cmd/root.go

    	_ = rootCmd.RegisterFlagCompletionFunc(cli.FlagIstioNamespace, func(
    		cmd *cobra.Command, args []string, toComplete string,
    	) ([]string, cobra.ShellCompDirective) {
    		return completion.ValidNamespaceArgs(cmd, ctx, args, toComplete)
    	})
    	_ = rootCmd.RegisterFlagCompletionFunc(cli.FlagNamespace, func(
    		cmd *cobra.Command, args []string, toComplete string,
    	) ([]string, cobra.ShellCompDirective) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 15:59:33 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/config.go

    	"k8s.io/kubernetes/cmd/kubeadm/app/util/output"
    	utilruntime "k8s.io/kubernetes/cmd/kubeadm/app/util/runtime"
    )
    
    // newCmdConfig returns cobra.Command for "kubeadm config" command
    func newCmdConfig(out io.Writer) *cobra.Command {
    	var kubeConfigFile string
    
    	cmd := &cobra.Command{
    		Use:   "config",
    		Short: "Manage configuration for a kubeadm cluster persisted in a ConfigMap in the cluster",
    		Long: fmt.Sprintf(dedent.Dedent(`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. istioctl/pkg/proxyconfig/proxyconfig.go

    	err := cw.Prime(debug)
    	if err != nil {
    		return nil, err
    	}
    	return cw, nil
    }
    
    func clusterConfigCmd(ctx cli.Context) *cobra.Command {
    	var podName, podNamespace string
    
    	clusterConfigCmd := &cobra.Command{
    		Use:   "cluster [<type>/]<name>[.<namespace>]",
    		Short: "Retrieves cluster configuration for the Envoy in the specified pod",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 03:28:36 UTC 2024
    - 48K bytes
    - Viewed (0)
  5. istioctl/pkg/dashboard/dashboard.go

    }
    
    func Dashboard(cliContext cli.Context) *cobra.Command {
    	dashboardCmd := &cobra.Command{
    		Use:     "dashboard",
    		Aliases: []string{"dash", "d"},
    		Short:   "Access to Istio web UIs",
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 0 {
    				return fmt.Errorf("unknown dashboard %q", args[0])
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 01:29:35 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/certs.go

    }
    
    // newCmdGenCSR returns cobra.Command for generating keys and CSRs
    func newCmdGenCSR(out io.Writer) *cobra.Command {
    	config := newGenCSRConfig()
    
    	cmd := &cobra.Command{
    		Use:     "generate-csr",
    		Short:   "Generate keys and certificate signing requests",
    		Long:    generateCSRLongDesc,
    		Example: generateCSRExample,
    		Args:    cobra.NoArgs,
    		RunE: func(cmd *cobra.Command, args []string) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/token.go

    	configutil "k8s.io/kubernetes/cmd/kubeadm/app/util/config"
    	"k8s.io/kubernetes/cmd/kubeadm/app/util/output"
    )
    
    // newCmdToken returns cobra.Command for token management
    func newCmdToken(out io.Writer, errW io.Writer) *cobra.Command {
    	var kubeConfigFile string
    	var dryRun bool
    	tokenCmd := &cobra.Command{
    		Use:   "token",
    		Short: "Manage bootstrap tokens",
    		Long: dedent.Dedent(`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 05:47:48 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  8. istioctl/pkg/tag/tag.go

    	_ = cmd.MarkPersistentFlagRequired("revision")
    
    	return cmd
    }
    
    func tagListCommand(ctx cli.Context) *cobra.Command {
    	cmd := &cobra.Command{
    		Use:     "list",
    		Short:   "List existing revision tags",
    		Example: "istioctl tag list",
    		Aliases: []string{"show"},
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 0 {
    				return fmt.Errorf("tag list command does not accept arguments")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  9. istioctl/pkg/waypoint/waypoint.go

    		}
    		return &gw, nil
    	}
    	waypointGenerateCmd := &cobra.Command{
    		Use:   "generate",
    		Short: "Generate a waypoint configuration",
    		Long:  "Generate a waypoint configuration as YAML",
    		Example: `  # Generate a waypoint as yaml
      istioctl waypoint generate --namespace default`,
    		RunE: func(cmd *cobra.Command, args []string) error {
    			gw, err := makeGateway(false)
    			if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 15:59:33 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. pilot/cmd/pilot-agent/app/cmd.go

    	return rootCmd
    }
    
    func newProxyCommand(sds istioagent.SDSServiceFactory) *cobra.Command {
    	return &cobra.Command{
    		Use:   "proxy",
    		Short: "XDS proxy agent",
    		FParseErrWhitelist: cobra.FParseErrWhitelist{
    			// Allow unknown flags for backward-compatibility.
    			UnknownFlags: true,
    		},
    		PersistentPreRunE: configureLogging,
    		RunE: func(c *cobra.Command, args []string) error {
    			cmd.PrintFlags(c.Flags())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 11.9K bytes
    - Viewed (0)
Back to top