Skip to content

Commit

Permalink
fix install.sh (chaos-mesh#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwen0 committed May 14, 2020
1 parent 401efb6 commit 26ff354
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ main() {
fi

if $template; then
gen_crd_manifests $crd
gen_chaos_mesh_manifests "${runtime}"
ensure gen_crd_manifests "${crd}"
ensure gen_chaos_mesh_manifests "${runtime}"
exit 0
fi

Expand All @@ -205,7 +205,7 @@ main() {

check_kubernetes

install_chaos_mesh "${release_name}" "${namespace}" "${local_kube}" ${force_chaos_mesh} ${docker_mirror} ${crd} ${runtime}
install_chaos_mesh "${release_name}" "${namespace}" "${local_kube}" ${force_chaos_mesh} ${docker_mirror} "${crd}" "${runtime}"
ensure_pods_ready "${namespace}" "app.kubernetes.io/component=controller-manager" 100
printf "Chaos Mesh %s is installed successfully\n" "${release_name}"
}
Expand Down Expand Up @@ -571,8 +571,8 @@ install_chaos_mesh() {
fi
fi

gen_crd_manifests ${crd} | kubectl apply -f -
gen_chaos_mesh_manifests ${runtime} | kubectl apply -f -
gen_crd_manifests "${crd}" | kubectl apply -f - || exit 1
gen_chaos_mesh_manifests "${runtime}" | kubectl apply -f - || exit 1
}

version_lt() {
Expand Down

0 comments on commit 26ff354

Please sign in to comment.