Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SubCmdRun (0.16 sec)

  1. cmd/kubeadm/app/cmd/util/cmdutil.go

    	kubeconfigutil "k8s.io/kubernetes/cmd/kubeadm/app/util/kubeconfig"
    )
    
    // SubCmdRun returns a function that handles a case where a subcommand must be specified
    // Without this callback, if a user runs just the command without a subcommand,
    // or with an invalid subcommand, cobra will print usage information, but still exit cleanly.
    func SubCmdRun() func(c *cobra.Command, args []string) {
    	return func(c *cobra.Command, args []string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/upgrade/upgrade.go

    		printConfig:               false,
    		out:                       out,
    	}
    
    	cmd := &cobra.Command{
    		Use:   "upgrade",
    		Short: "Upgrade your cluster smoothly to a newer version with this command",
    		Run:   cmdutil.SubCmdRun(),
    	}
    
    	cmd.AddCommand(newCmdApply(flags))
    	cmd.AddCommand(newCmdPlan(flags))
    	cmd.AddCommand(newCmdDiff(out))
    	cmd.AddCommand(newCmdNode(out))
    	return cmd
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 26 01:18:29 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/config.go

    		// cobra will print usage information, but still exit cleanly.
    		// We want to return an error code in these cases so that the
    		// user knows that their command was invalid.
    		Run: cmdutil.SubCmdRun(),
    	}
    
    	options.AddKubeConfigFlag(cmd.PersistentFlags(), &kubeConfigFile)
    
    	kubeConfigFile = cmdutil.GetKubeConfigPath(kubeConfigFile)
    	cmd.AddCommand(newCmdConfigPrint(out))
    	cmd.AddCommand(newCmdConfigMigrate(out))
    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. cmd/kubeadm/app/cmd/certs.go

    func newCmdCertsUtility(out io.Writer) *cobra.Command {
    	cmd := &cobra.Command{
    		Use:     "certs",
    		Aliases: []string{"certificates"},
    		Short:   "Commands related to handling kubernetes certificates",
    		Run:     cmdutil.SubCmdRun(),
    	}
    
    	cmd.AddCommand(newCmdCertsRenewal(out))
    	cmd.AddCommand(newCmdCertsExpiration(out, kubeadmconstants.KubernetesDir))
    	cmd.AddCommand(newCmdCertificateKey())
    	cmd.AddCommand(newCmdGenCSR(out))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/token.go

    		// cobra will print usage information, but still exit cleanly.
    		// We want to return an error code in these cases so that the
    		// user knows that their command was invalid.
    		Run: cmdutil.SubCmdRun(),
    	}
    
    	options.AddKubeConfigFlag(tokenCmd.PersistentFlags(), &kubeConfigFile)
    	tokenCmd.PersistentFlags().BoolVar(&dryRun,
    		options.DryRun, dryRun, "Whether to enable dry-run mode or not")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 05:47:48 UTC 2024
    - 15.9K bytes
    - Viewed (0)
Back to top