Skip to content

Commit

Permalink
Amend last try
Browse files Browse the repository at this point in the history
  • Loading branch information
devpro committed Sep 3, 2024
1 parent bf40152 commit 6c3ca52
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions scripts/kubernetes/certificate-management.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,7 @@ k8s_create_letsencryptclusterissuer() {
--set ingress.className=${ingressClassname} \
--set registration.emailAddress=${emailAddress} \
2>/dev/null
while true; do
if kubectl get clusterissuers -o json | jq -e '.items | length > 0' > /dev/null; then
break
else
echo "Waiting for ClusterIssuers to be ready..."
sleep 5
fi
done
sleep 5
while kubectl get clusterissuers -o json | jq -e '.items[] | select(.status.conditions[] | select(.type == "Ready" and .status != "True"))' > /dev/null; do
sleep 1
done
Expand Down

0 comments on commit 6c3ca52

Please sign in to comment.