refactor: optimize cmd disconnect (#642)

This commit is contained in:
naison
2025-06-12 13:15:41 +08:00
committed by GitHub
parent 4949df56ef
commit 46d15c5742

View File

@@ -31,8 +31,9 @@ func CmdDisconnect(f cmdutil.Factory) *cobra.Command {
This command is to disconnect from cluster. after use command 'kubevpn connect', This command is to disconnect from cluster. after use command 'kubevpn connect',
you can use this command to disconnect from a specific cluster. you can use this command to disconnect from a specific cluster.
before disconnect, it will leave proxy resource and clone resource if resource depends on this cluster
after disconnect it will also cleanup DNS and host - Before disconnect, it will leave proxy resource and clone resource if resource depends on this cluster.
- After disconnect, it will also cleanup DNS and host.
`)), `)),
Example: templates.Examples(i18n.T(` Example: templates.Examples(i18n.T(`
# disconnect from first cluster # disconnect from first cluster