fix(argocd): stop the document separator gluing itself to the last chart value #37

Merged
arcodange merged 1 commits from arcodange/fix-separator into main 2026-07-20 09:22:51 +02:00
Owner

Urgent — the fleet currently has no image-updater.

argocd_image_updater.yaml ended with {{- end -}} followed by ---. The trailing -}} eats the newline, so the separator glued itself onto the last rendered value. Pre-existing and silent: serverAddress had been https://argocd.arcodange.lab/--- all along. It became fatal in #36, when a name sorted last:

Deployment.apps "argocd-image-updater-controller" is invalid:
  spec.template.spec.volumes[6].name: Invalid value: "homelab-ca---"
  spec.template.spec.containers[0].volumeMounts[6].name: Not found: "homelab-ca"

k3s's helm job uninstalled the failed release before attempting the reinstall, so the release is gone until this merges.

Fix: {{- end }} and drop the stray trailing separator. helm template now renders serverAddress: https://argocd.arcodange.lab/ and name: homelab-ca cleanly.

My fault in #36 — the bad name was visible in the render I checked and I read past it.

🤖 Generated with Claude Code

https://claude.ai/code/session_013ws8L74dVZmp97Wu36fm8j

**Urgent — the fleet currently has no image-updater.** `argocd_image_updater.yaml` ended with `{{- end -}}` followed by `---`. The trailing `-}}` eats the newline, so the separator glued itself onto the last rendered value. Pre-existing and silent: `serverAddress` had been `https://argocd.arcodange.lab/---` all along. It became fatal in #36, when a *name* sorted last: ``` Deployment.apps "argocd-image-updater-controller" is invalid: spec.template.spec.volumes[6].name: Invalid value: "homelab-ca---" spec.template.spec.containers[0].volumeMounts[6].name: Not found: "homelab-ca" ``` k3s's helm job uninstalled the failed release before attempting the reinstall, so the release is **gone** until this merges. **Fix:** `{{- end }}` and drop the stray trailing separator. `helm template` now renders `serverAddress: https://argocd.arcodange.lab/` and `name: homelab-ca` cleanly. My fault in #36 — the bad name was visible in the render I checked and I read past it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_013ws8L74dVZmp97Wu36fm8j
arcodange added 1 commit 2026-07-20 09:22:45 +02:00
`{{- end -}}` ate the newline before the trailing `---`, so the last line of
the rendered values always absorbed it. It had been silently corrupting
serverAddress ("https://argocd.arcodange.lab/---") and turned fatal the moment
a *name* landed last: the install failed with

  Deployment.apps "argocd-image-updater-controller" is invalid:
  spec.template.spec.volumes[6].name: Invalid value: "homelab-ca---"

k3s had already uninstalled the release before the failed reinstall, so the
fleet is running with no image-updater until this lands.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013ws8L74dVZmp97Wu36fm8j
arcodange merged commit 342026a3d9 into main 2026-07-20 09:22:51 +02:00
arcodange deleted branch arcodange/fix-separator 2026-07-20 09:22:51 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: arcodange-org/factory#37