Update k8s/apps/pasarguard/daemonset.yaml
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 11s
Check with kubeconform / lint (push) Successful in 12s

This commit is contained in:
ab
2025-11-06 14:08:37 +00:00
parent 31fe1bf95d
commit 360f260cb5

View File

@@ -181,19 +181,19 @@ spec:
fi fi
# Wait for certificate to be ready # Wait for certificate to be ready
$TTL=600
echo "Waiting for certificate to be ready..." echo "Waiting for certificate to be ready..."
for i in {1..$TTL}; do for i in {1..600}; do
if kubectl get secret "${CERT_NAME}-tls" -n "${NAMESPACE}" &>/dev/null; then if kubectl get secret "${CERT_NAME}-tls" -n "${NAMESPACE}" &>/dev/null; then
echo "Certificate secret is ready!" echo "Certificate secret is ready!"
break break
fi fi
echo "Waiting for certificate... ($i/$TTL)" echo "Waiting for certificate... ($i/600)"
sleep 1 sleep 1
done done
if ! kubectl get secret "${CERT_NAME}-tls" -n "${NAMESPACE}" &>/dev/null; then if ! kubectl get secret "${CERT_NAME}-tls" -n "${NAMESPACE}" &>/dev/null; then
echo "WARNING: Certificate secret not ready after $TTL seconds" echo "WARNING: Certificate secret not ready after 600 seconds"
else else
# Extract certificate and key from secret to shared volume # Extract certificate and key from secret to shared volume
echo "Extracting certificate and key..." echo "Extracting certificate and key..."