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

Commit

Permalink
Merge pull request #14 from chuckha/build-fix
Browse files Browse the repository at this point in the history
Fix the build
  • Loading branch information
k8s-ci-robot authored Jun 24, 2019
2 parents 1676740 + 8cecc65 commit 25dac24
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 25dac24

Please sign in to comment.