Documentation ¶
Index ¶
- func NewCmdUnjoin(f cmdutil.Factory, parentCommand string) *cobra.Command
- type CommandUnjoinOption
- func (j *CommandUnjoinOption) AddFlags(flags *pflag.FlagSet)
- func (j *CommandUnjoinOption) Complete(args []string) error
- func (j *CommandUnjoinOption) Run(f cmdutil.Factory) error
- func (j *CommandUnjoinOption) RunUnJoinCluster(controlPlaneRestConfig, clusterConfig *rest.Config) error
- func (j *CommandUnjoinOption) Validate(args []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandUnjoinOption ¶
type CommandUnjoinOption struct { // ClusterNamespace holds namespace where the member cluster secrets are stored ClusterNamespace string // ClusterName is the cluster's name that we are going to join with. ClusterName string // ClusterContext is the cluster's context that we are going to join with. ClusterContext string // ClusterKubeConfig is the cluster's kubeconfig path. ClusterKubeConfig string // DryRun tells if run the command in dry-run mode, without making any server requests. DryRun bool // Wait tells maximum command execution time Wait time.Duration // contains filtered or unexported fields }
CommandUnjoinOption holds all command options.
func (*CommandUnjoinOption) AddFlags ¶
func (j *CommandUnjoinOption) AddFlags(flags *pflag.FlagSet)
AddFlags adds flags to the specified FlagSet.
func (*CommandUnjoinOption) Complete ¶
func (j *CommandUnjoinOption) Complete(args []string) error
Complete ensures that options are valid and marshals them if necessary.
func (*CommandUnjoinOption) Run ¶
func (j *CommandUnjoinOption) Run(f cmdutil.Factory) error
Run is the implementation of the 'unjoin' command.
func (*CommandUnjoinOption) RunUnJoinCluster ¶
func (j *CommandUnjoinOption) RunUnJoinCluster(controlPlaneRestConfig, clusterConfig *rest.Config) error
RunUnJoinCluster unJoin the cluster from karmada.
func (*CommandUnjoinOption) Validate ¶
func (j *CommandUnjoinOption) Validate(args []string) error
Validate ensures that command unjoin options are valid.
Click to show internal directories.
Click to hide internal directories.