Skip to content

Commit

Permalink
Merge pull request kubernetes-retired#304 from nerdalert/delete-dupli…
Browse files Browse the repository at this point in the history
…cate-kind-function

Remove duplicate function in e2e-test.sh
  • Loading branch information
k8s-ci-robot authored Jul 22, 2022
2 parents 65fa74f + c97e8e1 commit e97d93c
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions hack/test_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -490,27 +490,6 @@ function wait_until_cluster_is_ready {
pass_message "${cluster_name} is operational."
}

function delete_kind_cluster {
###########################################################################
# Description: #
# delete kind cluster #
# #
# Arguments: #
# arg1: cluster name #
###########################################################################
[ $# -eq 1 ]
if_error_exit "Wrong number of arguments to ${FUNCNAME[0]}"

local cluster_name="${1}"

if kind get clusters | grep -q "${cluster_name}" &> /dev/null; then
kind delete cluster --name "${cluster_name}" &> /dev/null
if_error_warning "cannot delete cluster ${cluster_name}"

pass_message "Cluster ${cluster_name} deleted."
fi
}

function install_kpng {
###########################################################################
# Description: #
Expand Down

0 comments on commit e97d93c

Please sign in to comment.