Import live vault-issuer ClusterIssuer into GitOps #328
Reference in New Issue
Block a user
Delete Branch "benvin/vault-issuer-gitops"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The `vault-issuer` ClusterIssuer is applied out-of-band (Helm release `cert-manager-clusterissuer`) and is referenced by ~15 Gateways, but is not tracked in GitOps — so the live, load-bearing issuer is drift. This imports it so ArgoCD manages it. The committed spec matches the live object exactly (verified against `kubectl get clusterissuer vault-issuer -o yaml`), so adoption is a no-op.
Changes
Depends on #327
ArgoCD can only adopt this resource once `{group: cert-manager.io, kind: ClusterIssuer}` is in the platform project `clusterResourceWhitelist`. That whitelist entry is added by #327, not here (to avoid a duplicate/conflicting change). Merge #327 first. There may be a small merge conflict with #327 in `apps/base/cert-manager/kustomization.yaml` (both append to the `resources` list); rebase on main after #327 merges.
Note: SA name discrepancy (not fixed here — committing live spec unchanged)
The live issuer authenticates as SA `cert-manager-vault-issuer`, but the repo scaffolding `serviceaccount.yaml` creates SA `vault-issuer`. Both SAs exist live in `cert-manager` (192d and 136d). The issuer uses `cert-manager-vault-issuer`, so this PR commits that name (live truth). The repo-managed `vault-issuer` SA appears unused by this issuer — worth a follow-up to reconcile which SA is canonical, but out of scope for a zero-change import.
https://claude.ai/code/session_01JUoARVdmhxKQHyyyp1pxeT