You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--auto-approve Skip interactive approval before promote the instance
28
-
--component string Specify the component name of the cluster, if the cluster has multiple components, you need to specify a component
22
+
--candidate string Specify the instance name as the new primary or leader of the cluster, you can get the instance name by running "kbcli cluster list-instances"
29
23
--dry-run string[="unchanged"] Must be "client", or "server". If with client strategy, only print the object that would be sent, and no data is actually sent. If with server strategy, submit the server-side request, but no data is persistent. (default "none")
30
24
--edit Edit the API resource before creating
31
25
--force skip the pre-checks of the opsRequest to run the opsRequest forcibly
32
26
-h, --help help for promote
33
-
--instance string Specify the instance name as the new primary or leader of the cluster, you can get the instance name by running "kbcli cluster list-instances"
34
27
--name string OpsRequest name. if not specified, it will be randomly generated
35
28
-o, --output format Prints the output in the specified format. Allowed values: JSON and YAML (default yaml)
36
29
--ttlSecondsAfterSucceed int Time to live after the OpsRequest succeed
Copy file name to clipboardExpand all lines: docs/user_docs/cli/kbcli_cluster_rebuild-instance.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,7 @@ kbcli cluster rebuild-instance NAME [flags]
39
39
--node strings specified the target node which rebuilds the instance on the node otherwise will rebuild on a random node. format: insName1=nodeName,insName2=nodeName
40
40
-o, --output format Prints the output in the specified format. Allowed values: JSON and YAML (default yaml)
41
41
--restore-env stringArray provide the necessary env for the 'Restore' operation from the backup. format: key1=value, key2=value
42
+
--source-backup-target string To rebuild a sharding component instance from a backup, you can specify the name of the source backup target
42
43
--ttlSecondsAfterSucceed int Time to live after the OpsRequest succeed
returnfmt.Errorf("instanceName %s does not belong to the current component, please check the validity of the instance using \"kbcli cluster list-instances\"", o.Instance)
returnfmt.Errorf("instanceName %s does not belong to the current cluster, please check the validity of the instance using \"kbcli cluster list-instances\"", o.Instance)
returnfmt.Errorf(`this component "%s does not support switchover, you can define the switchover action in the componentDef "%s"`, o.Component, compDefKey.Name)
500
+
returnfmt.Errorf(`this instance "%s does not support switchover, you can define the switchover action in the componentDef "%s"`, o.Instance, compDefKey.Name)
flags.AddComponentFlag(f, cmd, &o.Component, "Specify the component name of the cluster, if the cluster has multiple components, you need to specify a component")
1019
-
cmd.Flags().StringVar(&o.Instance, "instance", "", "Specify the instance name as the new primary or leader of the cluster, you can get the instance name by running \"kbcli cluster list-instances\"")
1011
+
cmd.Flags().StringVar(&o.Instance, "candidate", "", "Specify the instance name as the new primary or leader of the cluster, you can get the instance name by running \"kbcli cluster list-instances\"")
1020
1012
cmd.Flags().BoolVar(&o.AutoApprove, "auto-approve", false, "Skip interactive approval before promote the instance")
cmd.Flags().StringVar(&o.SourceBackupTargetName, "source-backup-target", "", "To rebuild a sharding component instance from a backup, you can specify the name of the source backup target")
1358
1353
cmd.Flags().StringSliceVar(&o.Nodes, "node", nil, `specified the target node which rebuilds the instance on the node otherwise will rebuild on a random node. format: insName1=nodeName,insName2=nodeName`)
1359
1354
cmd.Flags().StringArrayVar(&o.Env, "restore-env", []string{}, "provide the necessary env for the 'Restore' operation from the backup. format: key1=value, key2=value")
0 commit comments