Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -488,10 +488,10 @@ gcloud deployment-manager deployments delete -q "${INFRA_ID}-bootstrap"
## Approving the CSR requests for nodes
echo "$(date -u --rfc-3339=seconds) - Approving the CSR requests for nodes..."
function approve_csrs() {
while true; do
oc get csr -ojson | jq -r '.items[] | select(.status == {} ) | .metadata.name' | xargs --no-run-if-empty oc adm certificate approve
sleep 15 & wait
continue
while [[ ! -f /tmp/install-complete ]]; do
# even if oc get csr fails continue
oc get csr -ojson | jq -r '.items[] | select(.status == {} ) | .metadata.name' | xargs --no-run-if-empty oc adm certificate approve || true
sleep 15 & wait
done
}
approve_csrs &
Expand Down Expand Up @@ -541,3 +541,4 @@ cp -t "${SHARED_DIR}" \
"${dir}/auth/kubeconfig"

popd
touch /tmp/install-complete