Restructure dev ArgoCD to GitOps bootstrap (split roots, drop kubectl provider, auto-seed secrets)#48
Merged
Merged
Conversation
…secrets via terraform
…cess Feat/dev align provisioning access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Addresses three smells in the initial dev setup:
gavinbunney/kubectlcommunity provider dependency.What changed
modules/argocdgutted to a lean bootstrap installer: argo-cd + two corekubernetes_secrets (repo creds + admin, official provider) + root app-of-apps via the argocd-apps Helm chart. No kubectl provider, no templates.modules/pod-identity-role(new) — reusable AWS-only Pod Identity role + association.environments/dev/(cluster root) is now AWS-only → single-pass apply. Addspod-identity.tf(external-secrets + image-updater IAM) andsecrets.tf(Terraform generates + stores admin password, server key, and an ed25519 deploy key in Secrets Manager).environments/dev/bootstrap/(new root) installs ArgoCD, reading the cluster via remote state and secrets viaaws_secretsmanager_secret_version— providers resolve from the existing cluster, so no two-phase.dev-platform-appsproject, instead of being installed by Terraform.Apply flow
environments/dev—terraform apply(single pass)terraform output -raw argocd_repo_deploy_public_keyas a GitHub deploy key (write, for Image Updater write-back)environments/dev/bootstrap—terraform applyVerify
0.10.7placeholder) to current stable.