Post

Keeping Argo CD Command Parameters With Helm During Self-Management Handoff

Keeping Argo CD Command Parameters With Helm During Self-Management Handoff

I updated CI validation and documentation so the Helm command-parameter ConfigMap stays declared by Helm during the self-management handoff, preventing a duplicate ConfigMap render while protecting the live ConfigMap with prune and extraneous annotations.

Command Parameter ConfigMap Stays With Helm During Handoff

Bootstrap Helm now declares argocd-cmd-params-cm with both command parameters and retains Prune=false and IgnoreExtraneous to protect the live ConfigMap while the self-management Application stops declaring it. The static gate checks values and annotations in the pinned chart, verifies the controller restart marker, and rejects a second ConfigMap in the self-management render. The handoff starts with a protected bootstrap apply of both source declarations, then verifies live Helm ownership, parameters, annotations, and controller health before removing the self-management copy.

CI Gate Enforces Single ConfigMap and Rejects Duplicate

The argocd-command-params-check.sh script now reads only the Helm chart render and expects one command-parameter ConfigMap with both values and handoff annotations. It fails if either is missing, and it also fails if the self-management render still includes the argocd-cmd-params-cm ConfigMap. This keeps the gate focused on Helm ownership while catching accidental duplication during the handoff window.

Argo CD Bootstrap Check Moves to Terragrunt Render

I updated offline-checks.sh so the Argo CD controller sync timeout assertion now runs against a Terragrunt render of the bootstrap directory instead of a static kustomize file. The check renders with Terragrunt, selects the single input value, and asserts the expected timeout before treating the bootstrap configuration as valid. This aligns the offline check with the actual Terragrunt-driven bootstrap path.

Applying This Pattern to Platform GitOps Workflows

Platform teams managing Argo CD self-management can use the same pattern: keep shared cluster-scoped resources declared by the owning component during handoff, protect them with prune and extraneous annotations, and add CI gates that reject duplicate renders from the retiring self-management application. Verify live ownership and controller health before decommissioning the old copy.

This post is licensed under CC BY 4.0 by the author.