From be2290075c4ebe4820195c7ad81a654df6e7ae65 Mon Sep 17 00:00:00 2001 From: Kilian Boute Date: Wed, 8 Jul 2026 12:59:28 +0000 Subject: [PATCH] fix(hub-stage): add newline before doc separator so multiple stage workers render valid YAML The generic stage-worker loop in templates/kerberos-pipeline/hub-stage.yaml closed each iteration with `{{- end }}`, whose left-trim stripped the newline after the Service's final line (`app: hub-`). With a single enabled stage worker this was latent, but with two or more the next worker's `---` separator was glued onto the previous Service's last line (e.g. `app: hub-loitering---`), merging two resources into one malformed document. In production this surfaced as ArgoCD "one or more synchronization tasks are not valid" once objecttracking was enabled alongside anpr and loitering (3 stage workers -> 2 glued boundaries: anpr->loitering and loitering->objecttracking). Fix: emit a trailing newline before the next document separator by using `{{ end -}}` for the per-service if-close. Rendering the hub chart with the production values now yields 58 valid documents (previously 56, of which 2 were Service+Deployment glued together) and 0 malformed separators. Bump chart to 0.121.1 so the fix can be published to charts.kerberos.io. --- charts/hub/Chart.yaml | 2 +- charts/hub/templates/kerberos-pipeline/hub-stage.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/hub/Chart.yaml b/charts/hub/Chart.yaml index 5ea53b4..1ab1a1e 100644 --- a/charts/hub/Chart.yaml +++ b/charts/hub/Chart.yaml @@ -16,7 +16,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.121.0 +version: 0.121.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/hub/templates/kerberos-pipeline/hub-stage.yaml b/charts/hub/templates/kerberos-pipeline/hub-stage.yaml index 2e0b2b7..8f8e2ca 100644 --- a/charts/hub/templates/kerberos-pipeline/hub-stage.yaml +++ b/charts/hub/templates/kerberos-pipeline/hub-stage.yaml @@ -127,6 +127,6 @@ spec: protocol: TCP selector: app: hub-{{ $name }} -{{- end }} +{{ end -}} {{- end }} {{- end }}