From bd2d4065d98dcdf1699eac9dcfac3f7be460ca04 Mon Sep 17 00:00:00 2001 From: ChrsMark Date: Fri, 22 May 2026 21:10:58 +0300 Subject: [PATCH] fix: align otel-collector image tag with chart appVersion The otel-collector image tag was hardcoded at 2.19.0 while the chart appVersion is 2.27.0. The 2.27.0 app pushes an OpAMP config containing a `json:` key in the ClickHouse exporter, which the 2.19.0 collector binary rejects with: 'clickhouseexporter.Config' has invalid keys: json This causes an immediate CrashLoopBackOff on my-clickstack-otel-collector, making port 4318 unavailable to any downstream collectors. Fixes #219 --- .github/workflows/update-app-version.yml | 9 +++++++-- charts/clickstack/values.yaml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-app-version.yml b/.github/workflows/update-app-version.yml index f93994f..6b5a493 100644 --- a/.github/workflows/update-app-version.yml +++ b/.github/workflows/update-app-version.yml @@ -25,6 +25,10 @@ jobs: run: | sed -i "s/^appVersion: .*/appVersion: ${{ github.event.inputs.tag }}/" charts/clickstack/Chart.yaml + - name: Update otel-collector image tag in values.yaml + run: | + sed -i '/clickstack-otel-collector/{n;s/tag: "[^"]*"/tag: "${{ github.event.inputs.tag }}"/}' charts/clickstack/values.yaml + - name: Create changeset run: | mkdir -p .changeset @@ -43,8 +47,9 @@ jobs: commit-message: "chore: Update appVersion to ${{ github.event.inputs.tag }}" title: "Update appVersion to ${{ github.event.inputs.tag }}" body: | - This PR updates the appVersion in Chart.yaml to `${{ github.event.inputs.tag }}`. - + This PR updates the appVersion in Chart.yaml to `${{ github.event.inputs.tag }}` and aligns the otel-collector image tag in values.yaml. + - Updated `charts/clickstack/Chart.yaml` + - Updated `otel-collector.image.tag` in `charts/clickstack/values.yaml` branch: update-app-version-${{ github.event.inputs.tag }} delete-branch: true diff --git a/charts/clickstack/values.yaml b/charts/clickstack/values.yaml index 4b68915..72a3c96 100644 --- a/charts/clickstack/values.yaml +++ b/charts/clickstack/values.yaml @@ -371,7 +371,7 @@ otel-collector: mode: deployment image: repository: docker.clickhouse.com/clickhouse/clickstack-otel-collector - tag: "2.19.0" + tag: "2.27.0" extraEnvsFrom: - configMapRef: name: clickstack-config