-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
server_uninstall.go
31 lines (25 loc) · 1.47 KB
/
server_uninstall.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package cmd
import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)
var server_uninstallCmd = &cobra.Command{
Use: "uninstall",
Short: "Uninstall the Waypoint server",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(server_uninstallCmd).Standalone()
server_uninstallCmd.Flags().Bool("auto-approve", false, "Auto-approve server uninstallation.")
server_uninstallCmd.Flags().Bool("delete-context", false, "Delete the context for the server once it's uninstalled.")
server_uninstallCmd.Flags().String("ecs-cluster", "", "Configures the Cluster to uninstall.")
server_uninstallCmd.Flags().String("ecs-region", "", "Configures which AWS region to uninstall from.")
server_uninstallCmd.Flags().Bool("ignore-runner-error", false, "Ignore any errors encountered while uninstalling runners.")
server_uninstallCmd.Flags().String("k8s-context", "", "The Kubernetes context to unisntall the Waypoint server from.")
server_uninstallCmd.Flags().String("k8s-namespace", "", "Namespace in Kubernetes to uninstall the Waypoint server from.")
server_uninstallCmd.Flags().String("platform", "", "Platform to uninstall the Waypoint server from.")
server_uninstallCmd.Flags().Bool("snapshot", false, "Enable or disable taking a snapshot of Waypoint server prior to uninstall.")
server_uninstallCmd.Flags().String("snapshot-name", "", "Filename to write the snapshot to.")
addGlobalOptions(server_uninstallCmd)
serverCmd.AddCommand(server_uninstallCmd)
}