This is an automated email from the ASF dual-hosted git repository.
zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git
The following commit(s) were added to refs/heads/master by this push:
new 90c12c81 Modify the uninstall and upgrade description
90c12c81 is described below
commit 90c12c81d1cc677ba099143b630e535bf681b4ad
Author: mfordjody <[email protected]>
AuthorDate: Thu Dec 5 13:03:29 2024 +0800
Modify the uninstall and upgrade description
---
operator/cmd/cluster/uninstall.go | 4 ++--
operator/cmd/cluster/upgrade.go | 19 ++++++++++++++++++-
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/operator/cmd/cluster/uninstall.go
b/operator/cmd/cluster/uninstall.go
index 8696e2a5..5133d6a5 100644
--- a/operator/cmd/cluster/uninstall.go
+++ b/operator/cmd/cluster/uninstall.go
@@ -17,7 +17,7 @@ func UninstallCmd(ctx cli.Context) *cobra.Command {
uiArgs := &uninstallArgs{}
uicmd := &cobra.Command{
Use: "uninstall",
- Short: "Applies an Dubbo manifest, installing or
reconfiguring Dubbo on a cluster",
+ Short: "Uninstall Dubbo-related resources",
Long: "",
Example: ``,
RunE: func(cmd *cobra.Command, args []string) error {
@@ -35,4 +35,4 @@ func uninstall(
rootArgs *RootArgs,
uiArgs *uninstallArgs) error {
return nil
-}
\ No newline at end of file
+}
diff --git a/operator/cmd/cluster/upgrade.go b/operator/cmd/cluster/upgrade.go
index f3ff4fd1..89136348 100644
--- a/operator/cmd/cluster/upgrade.go
+++ b/operator/cmd/cluster/upgrade.go
@@ -10,5 +10,22 @@ type upgradeArgs struct {
}
func UpgradeCmd(ctx cli.Context) *cobra.Command {
- return nil
+ rootArgs := &RootArgs{}
+ upArgs := &upgradeArgs{
+ installArgs: &installArgs{},
+ }
+ cmd := &cobra.Command{
+ Use: "upgrade",
+ Short: "Upgrade the Dubbo Control Plane",
+ Long: "",
+ Example: "",
+ RunE: func(cmd *cobra.Command, args []string) error {
+ client, err := ctx.CLIClient()
+ if err != nil {
+ return err
+ }
+ return install(client, rootArgs, upArgs.installArgs)
+ },
+ }
+ return cmd
}