From cfc869914795bc3c1f16c3fd6407301b86863395 Mon Sep 17 00:00:00 2001 From: Anton Zelenov Date: Tue, 23 Jun 2026 18:53:30 +0200 Subject: [PATCH] Fix local deploy and pin new version Signed-off-by: Anton Zelenov --- .github/workflows/build-images.yml | 10 ++++++---- deploy/gitops/.insight-version | 2 +- deploy/gitops/environments/local/values.yaml.template | 7 +++++++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index ff06f9e8d..a8801fee5 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -1118,12 +1118,13 @@ jobs: echo "Umbrella version $CURRENT → $NEXT (appVersion → $NEW_APP)" yq -i ".version = \"$NEXT\"" charts/insight/Chart.yaml yq -i ".appVersion = \"$NEW_APP\"" charts/insight/Chart.yaml - # Mirror the new chart version into the sample gitops starter - # at docs/deploy/.insight-version so external operators tracking - # `main` pick up new chart releases on the next `git pull`. + # Pin new version in docs and sample gitops if [ -f docs/deploy/.insight-version ]; then echo "$NEXT" > docs/deploy/.insight-version fi + if [ -f deploy/gitops/.insight-version ]; then + echo "$NEXT" > deploy/gitops/.insight-version + fi echo "version=${NEXT}" >> "$GITHUB_OUTPUT" - name: Helm dependency update @@ -1191,7 +1192,8 @@ jobs: src/backend/services/api-gateway/helm/Chart.yaml \ src/backend/services/analytics-api/helm/Chart.yaml \ src/backend/services/identity/helm/Chart.yaml \ - src/frontend/helm/Chart.yaml + src/frontend/helm/Chart.yaml \ + deploy/gitops/.insight-version # Sample gitops starter under docs/deploy — pin moves with the # umbrella. Stage only if present (the file is introduced by # the gitops-sample PR and only lives on `main` after it merges). diff --git a/deploy/gitops/.insight-version b/deploy/gitops/.insight-version index b9dbcf613..769ed6ae7 100644 --- a/deploy/gitops/.insight-version +++ b/deploy/gitops/.insight-version @@ -1 +1 @@ -0.1.79 +0.2.14 diff --git a/deploy/gitops/environments/local/values.yaml.template b/deploy/gitops/environments/local/values.yaml.template index 654521c4d..56b542e4b 100644 --- a/deploy/gitops/environments/local/values.yaml.template +++ b/deploy/gitops/environments/local/values.yaml.template @@ -27,6 +27,13 @@ credentials: global: storageClass: local-path + # Single-tenant fallback for the analytics-api metric-catalog resolver + # (compose-app-secrets.sh reads .global.tenantDefaultId → emits + # ANALYTICS__metric_catalog__tenant_default_id). Without it, the + # unauthenticated kubelet /health probe can't resolve a tenant and gets + # HTTP 400 → liveness kill → CrashLoopBackOff → deploy rollback. Set to + # the seeded demo tenant so /health resolves AND dashboards populate. + tenantDefaultId: "00000000-df51-5b42-9538-d2b56b7ee953" # ─── L2 cross-namespace wiring ───────────────────────────────────────────── # Each subchart's `deploy: false` flips the umbrella from