2
0
Matthew R Kasun 1 жил өмнө
parent
commit
1e2fae0652

+ 0 - 22
cli/cmd/node/uncordon.go

@@ -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)
-}

+ 0 - 5
cli/functions/node.go

@@ -52,8 +52,3 @@ func CreateIngress(networkName, nodeID string, failover bool) *models.ApiNode {
 func DeleteIngress(networkName, nodeID string) *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)
 	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)
-}