Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
Fix the build
Browse files Browse the repository at this point in the history
Signed-off-by: Chuck Ha <chuckh@vmware.com>
  • Loading branch information
chuckha committed Jun 24, 2019
1 parent 6372508 commit 8cecc65
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions cmd/kind-test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,20 @@ func main() {
if _, err := actions.AddWorker(clusterName, inputs[1], version); err != nil {
panic(fmt.Sprintf("%+v", err))
}
case "delete-node":
case "delete-control-plane":
if len(inputs) < 2 {
fmt.Println("usage: delete-node my-cluster-worker1")
fmt.Println("usage: delete-control-plane my-cluster-control-plane")
continue
}
fmt.Println("Warning: If you are deleting a control plane node your cluster may break.")
if err := actions.DeleteNode(clusterName, inputs[1]); err != nil {
if err := actions.DeleteControlPlane(clusterName, inputs[1]); err != nil {
panic(fmt.Sprintf("%+v", err))
}
case "delete-worker":
if len(inputs) < 2 {
fmt.Println("usage: delete-worker my-cluster-worker")
continue
}
if err := actions.DeleteWorker(clusterName, inputs[1]); err != nil {
panic(fmt.Sprintf("%+v", err))
}
case "add-control-plane":
Expand Down

0 comments on commit 8cecc65

Please sign in to comment.