Skip to content
Snippets Groups Projects

Draft: set the install job timeout to 45 minutes

Closed Diana Gaponcic requested to merge install-job-timeout into cern/train
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -16,11 +16,11 @@ if [[ ( $(echo ${CERN_CHART_VERSION} | cut -d. -f2) -ge 14 ) ]]; then
done
# wait for the install job to finish
kubectl -n magnum-tiller wait job/install-cern-magnum-job --for=condition=complete --timeout=600s || jobstatus=1
kubectl -n magnum-tiller wait job/install-cern-magnum-job --for=condition=complete --timeout=2700s || jobstatus=1
# check all resources are ready
for r in $(kubectl -n kube-system get deploy -o=jsonpath='{.items[*].metadata.name}'); do
kubectl -n kube-system wait deploy/${r} --for=condition=Available=True --timeout=600s
kubectl -n kube-system wait deploy/${r} --for=condition=Available=True --timeout=2700s
done
for r in $(kubectl -n kube-system get daemonset -o=jsonpath='{.items[*].metadata.name}'); do
desired=$(kubectl -n kube-system get daemonset $r -o=jsonpath='{.status.desiredNumberScheduled}')
Loading