mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
27 lines
1.1 KiB
Go
27 lines
1.1 KiB
Go
package cmd
|
|
|
|
import (
|
|
"github.com/carapace-sh/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var join_phase_controlPlaneJoin_markControlPlaneCmd = &cobra.Command{
|
|
Use: "mark-control-plane",
|
|
Short: "Mark a node as a control-plane",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(join_phase_controlPlaneJoin_markControlPlaneCmd).Standalone()
|
|
|
|
join_phase_controlPlaneJoin_markControlPlaneCmd.Flags().String("config", "", "Path to a kubeadm configuration file.")
|
|
join_phase_controlPlaneJoin_markControlPlaneCmd.Flags().Bool("control-plane", false, "Create a new control plane instance on this node")
|
|
join_phase_controlPlaneJoin_markControlPlaneCmd.Flags().Bool("dry-run", false, "Don't apply any changes; just output what would be done.")
|
|
join_phase_controlPlaneJoin_markControlPlaneCmd.Flags().String("node-name", "", "Specify the node name.")
|
|
join_phase_controlPlaneJoinCmd.AddCommand(join_phase_controlPlaneJoin_markControlPlaneCmd)
|
|
|
|
carapace.Gen(join_phase_controlPlaneJoin_markControlPlaneCmd).FlagCompletion(carapace.ActionMap{
|
|
"config": carapace.ActionFiles(),
|
|
})
|
|
}
|