From 7ce5331297d607668c7e345aa92cec272bc6ff5a Mon Sep 17 00:00:00 2001 From: Matthew R Kasun Date: Tue, 29 Aug 2023 14:57:21 -0400 Subject: [PATCH] remove node uncordon --- cli/cmd/node/uncordon.go | 22 ---------------------- cli/functions/node.go | 5 ----- 2 files changed, 27 deletions(-) delete mode 100644 cli/cmd/node/uncordon.go diff --git a/cli/cmd/node/uncordon.go b/cli/cmd/node/uncordon.go deleted file mode 100644 index b9b094c2d..000000000 --- a/cli/cmd/node/uncordon.go +++ /dev/null @@ -1,22 +0,0 @@ -package node - -import ( - "fmt" - - "github.com/gravitl/netmaker/cli/functions" - "github.com/spf13/cobra" -) - -var nodeUncordonCmd = &cobra.Command{ - Use: "uncordon [NETWORK NAME] [NODE ID]", - Args: cobra.ExactArgs(2), - Short: "Get a node by ID", - Long: `Get a node by ID`, - Run: func(cmd *cobra.Command, args []string) { - fmt.Println(*functions.UncordonNode(args[0], args[1])) - }, -} - -func init() { - rootCmd.AddCommand(nodeUncordonCmd) -} diff --git a/cli/functions/node.go b/cli/functions/node.go index ef75ce395..8c80a9ee1 100644 --- a/cli/functions/node.go +++ b/cli/functions/node.go @@ -52,8 +52,3 @@ func CreateIngress(networkName, nodeID string, failover bool) *models.ApiNode { func DeleteIngress(networkName, nodeID string) *models.ApiNode { return request[models.ApiNode](http.MethodDelete, fmt.Sprintf("/api/nodes/%s/%s/deleteingress", networkName, nodeID), nil) } - -// UncordonNode - uncordon a node -func UncordonNode(networkName, nodeID string) *string { - return request[string](http.MethodPost, fmt.Sprintf("/api/nodes/%s/%s/approve", networkName, nodeID), nil) -}