Argo CD's install, registry secret and root app move into tofu (PIPT-89) #49

Merged
merge-queue merged 2 commits from PIPT-89-argocd-tofu into main 2026-11-30 14:14:59 -08:00
Owner

The argocd.yaml workflow goes; tofu/argocd.tf takes over what it did, imported from the live cluster:

  • Argo CD's Helm release, installed once and then never changed or uninstalled from here (ignore_changes = all, prevent_destroy); Argo CD keeps managing itself from k8s/argocd. Its chart is tofu/argo-cd, argo-helm's argo-cd-9.5.2.tgz as published (sha256 6348e1ed..., matching GitHub's asset digest), the version the live release runs: the Helm provider loads the chart on every plan by the bare name an imported release records, which it can only read as a local path.
  • The Docker Hub repository secret, its account read from romaine-kv.
  • The root app (app of apps over k8s/apps), now in HCL; k8s/root-app.yaml goes.

The Kubernetes and Helm providers sign in with the cluster's kube_config, already in this state. Plan against the live cluster: 3 to import, 2 to change, 0 to add or destroy. The two changes write only tofu's own bookkeeping on the imported root app and secret (the manifest and field_manager attributes, and wait_for_service_account_token): no field of either object changes. Nothing else in the plan.

A cluster with no Argo CD can't plan the root app until the release has installed Argo CD's CRDs (kubernetes_manifest reads its kind from the cluster when it plans).

https://openproject.home.romaine.life/wp/PIPT-89

The argocd.yaml workflow goes; tofu/argocd.tf takes over what it did, imported from the live cluster: - Argo CD's Helm release, installed once and then never changed or uninstalled from here (ignore_changes = all, prevent_destroy); Argo CD keeps managing itself from k8s/argocd. Its chart is tofu/argo-cd, argo-helm's argo-cd-9.5.2.tgz as published (sha256 6348e1ed..., matching GitHub's asset digest), the version the live release runs: the Helm provider loads the chart on every plan by the bare name an imported release records, which it can only read as a local path. - The Docker Hub repository secret, its account read from romaine-kv. - The root app (app of apps over k8s/apps), now in HCL; k8s/root-app.yaml goes. The Kubernetes and Helm providers sign in with the cluster's kube_config, already in this state. Plan against the live cluster: 3 to import, 2 to change, 0 to add or destroy. The two changes write only tofu's own bookkeeping on the imported root app and secret (the manifest and field_manager attributes, and wait_for_service_account_token): no field of either object changes. Nothing else in the plan. A cluster with no Argo CD can't plan the root app until the release has installed Argo CD's CRDs (kubernetes_manifest reads its kind from the cluster when it plans). https://openproject.home.romaine.life/wp/PIPT-89
Argo CD's install, registry secret and root app move from the argocd.yaml workflow into tofu, imported (PIPT-89)
Some checks failed
Suite tofu / scope (push) Has been skipped
Suite tofu / check-plan (push) Has been skipped
Suite tofu / apply (push) Has been skipped
Suite tofu / check-plan (pull_request) Failing after 3m0s
Suite tofu / reused-checks (pull_request) Successful in 4s
Suite tofu / scope (pull_request) Successful in 4s
Suite tofu / apply (pull_request) Has been skipped
Suite default / check-rules (pull_request) Successful in 4s
Suite default / check-fetches (pull_request) Successful in 4s
Checks / check-files (pull_request) Successful in 2s
Suite default / scope (pull_request) Successful in 4s
Suite tofu / reused-checks (push) Has been skipped
Suite default / check-logs (pull_request) Has been skipped
Suite default / reused-checks (pull_request) Successful in 3s
4f61a68cc2
The Helm release loads its chart from a vendored argo-cd 9.5.2 archive, as the imported release names it (PIPT-89)
All checks were successful
Suite default / check-rules (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Has been skipped
Suite default / reused-checks (pull_request) Successful in 13s
Suite default / check-logs (pull_request) Has been skipped
Suite tofu / apply (pull_request) Has been skipped
Suite tofu / scope (push) Has been skipped
Suite tofu / check-plan (push) Has been skipped
Suite tofu / apply (push) Has been skipped
Suite tofu / reused-checks (push) Has been skipped
Suite tofu / scope (pull_request) Successful in 11s
Suite default / scope (pull_request) Successful in 11s
Checks / check-files (pull_request) Successful in 5s
Suite tofu / check-plan (pull_request) Successful in 3m35s
Suite tofu / reused-checks (pull_request) Successful in 11s
merge-queue landed on main
a7ba2a189f
merge-queue deleted branch PIPT-89-argocd-tofu 2026-11-30 14:15:00 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/infra-bootstrap!49
No description provided.