fix: retry observability oci chart fetches
Deploy Cluster / Terraform (push) Successful in 32s
Deploy Cluster / Ansible (push) Successful in 18m20s

This commit is contained in:
2026-05-03 07:24:31 +00:00
parent 4197647b08
commit e5c8d55530
3 changed files with 17 additions and 8 deletions
+7
View File
@@ -967,8 +967,12 @@ jobs:
wait_for_ocirepository_ready_or_cached() {
local repository="$1"
local timeout="$2"
local attempts="${3:-6}"
local artifact_storage
local attempt
for attempt in $(seq 1 "${attempts}"); do
reconcile_flux_resource "ocirepository/${repository}" 300
if kubectl -n flux-system wait --for=condition=Ready "ocirepository/${repository}" --timeout="${timeout}"; then
return 0
fi
@@ -979,6 +983,9 @@ jobs:
return 0
fi
echo "OCIRepository ${repository} did not become Ready after ${timeout}; forcing retry (${attempt}/${attempts})" >&2
done
observability_diagnostics
exit 1
}
@@ -5,6 +5,7 @@ metadata:
namespace: flux-system
spec:
interval: 10m
timeout: 5m
url: oci://ghcr.io/grafana/helm-charts/loki
ref:
tag: 6.46.0
@@ -5,6 +5,7 @@ metadata:
namespace: flux-system
spec:
interval: 10m
timeout: 5m
url: oci://ghcr.io/grafana/helm-charts/promtail
ref:
tag: 6.16.6