1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-17 15:40:07 +00:00
This commit is contained in:
vardhaman
2023-05-03 16:51:27 +05:30
parent 79755bb31f
commit d318ea9370

View File

@@ -263,7 +263,7 @@ for pid in "${!pid_upgrade_results[@]}"; do
fi fi
if [ "$kind" = "Job" ]; then if [ "$kind" = "Job" ]; then
echo_with_time "Checking job complete status of $kind $name in namespace $namespace for upgrade ${pid_upgrade_to_version} to "${upgraded_version}"" echo_with_time "Checking job complete status of $kind $name in namespace $namespace for upgrade ${pid_upgrade_to_version} to "${upgraded_version}""
/usr/local/bin/kubectl-${clusterk8sversion} --kubeconfig "./bin/kube_config_cluster-${pid_to_version}.yml" -n $namespace wait --for=condition=complete $kind $name --timeout=5m >/dev/null 2>&1 /usr/local/bin/kubectl-${clusterk8sversion} --kubeconfig "./bin/kube_config_cluster-${pid_upgrade_to_version}.yml" -n $namespace wait --for=condition=complete $kind $name --timeout=5m >/dev/null 2>&1
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo_with_time "[FAIL] Job complete of $kind $name in namespace $namespace for upgrade ${pid_upgrade_to_version} to "${upgraded_version}" did not complete in 5 minutes" echo_with_time "[FAIL] Job complete of $kind $name in namespace $namespace for upgrade ${pid_upgrade_to_version} to "${upgraded_version}" did not complete in 5 minutes"
rollout_upgrade_results["${pid}"]="1" rollout_upgrade_results["${pid}"]="1"