fix: Update cert-manager

improve installation script and increase max readines retries for cert-manager
This commit is contained in:
jon brookes 2025-10-08 13:59:03 +01:00
parent 9fc84486a1
commit 80f4e5a53b
4 changed files with 59 additions and 18 deletions

View file

@ -8,4 +8,27 @@ fi
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.17.2/cert-manager.yaml
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.17.2/cert-manager.yaml
echo "Waiting for cert-manager pods to be in 'Running' state..."
MAX_RETRIES=10
RETRY=0
while [ $RETRY -lt $MAX_RETRIES ]; do
NOT_READY_PODS=$(kubectl -n cert-manager get pods --no-headers | grep -v 'Running' | wc -l)
if [ "$NOT_READY_PODS" -eq 0 ]; then
echo "All cert-manager pods are running."
break
else
echo "$NOT_READY_PODS pods are not ready yet. Waiting..."
RETRY=$((RETRY + 1))
sleep 5
fi
done
if [ "$NOT_READY_PODS" -ne 0 ]; then
echo "Failed to get all cert-manager pods running after $MAX_RETRIES attempts."
exit 1
fi

View file

@ -1,7 +1,7 @@
#!/bin/bash
INFCTL_GIT_REPO="https://codeberg.org/headshed/infctl-cli.git"
INFCTL_GIT_REPO_BRANCH="feature/gcloud-k3s"
INFCTL_GIT_REPO_BRANCH="main"
INFCTL_INSTALL_DIR="/opt/src"
# ensure only run once

View file

@ -1,20 +1,29 @@
#!/usr/bin/env bash
# sleep 5
for i in {1..5}; do
echo "working ..."
sleep 0.5
done
echo "crash"
sleep 2
# sleep 1
echo "not working ..."
echo "bang"
sleep 1
# sleep 2
figlet "boom"
echo "wallop"
sleep 1
# sleep 1
figlet "bang"
echo "Houston, we have a problem"
sleep 2
echo "oh dear, oh my..."
sleep 1
figlet "Houston, we have a problem"
sleep 1

View file

@ -1,20 +1,29 @@
#!/usr/bin/env bash
# sleep 5
for i in {1..5}; do
echo "working ..."
sleep 0.5
done
echo "bish"
sleep 2
# sleep 1
echo "still working ..."
echo "bash"
sleep 1
# sleep 2
figlet "bish"
echo "bosh"
sleep 1
# sleep 1
figlet "bash"
echo "lovely jubbly"
sleep 2
figlet "bosh"
sleep 1
figlet "LOVELY JUBBLY"
sleep 1