Deploy repospawner v0.1.0 #445
Reference in New Issue
Block a user
Delete Branch "benvin/deploy-repospawner"
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
repospawner v0.1.0 is built and its Vault kubernetes auth role is applied, but nothing deploys it. It turns a "I want a new repository" request into a terraform-git pull request, follows that PR to merge, and optionally activates the repo in Woodpecker, so the review gate stays where it is instead of moving into an agent's hands.
How
apps/base/repospawner/: namespace, ServiceAccountrepospawner,defaultVaultAuth for VSO, and a namespaced Role/RoleBinding granting jobs create/get/list/watch/delete plus pods and pods/log reads (mirrors mediamover).artifactapi.k8s.syd1.au.unkin.net/docker-internal/repospawner:v0.1.0, one replica with theRecreatestrategy because request state is in memory and rebuilt from Job labels; the same image reference is passed down asREPOSPAWNER_IMAGEso the spawned Jobs stay in step.audience: vaultservice account token at/var/run/secrets/vault— the app logs into Vault natively rather than through VSO — and therepospawner-woodpeckerSecret at/etc/repospawner/woodpecker, optional so the server still starts and refuseswoodpecker: truewith 503 when it is absent.oauth-credentialsfromkv/kubernetes/namespace/repospawner/default/oauth-credentialsandrepospawner-woodpecker(keytoken) from.../default/woodpecker, with reloader annotations on both consumers.akP-repospawner-adminvia theak_groupsclaim and re-checked by the app fromX-Forwarded-Groups; publicrepospawner.unkin.neton the reflected wildcard and internalrepospawner.k8s.syd1.au.unkin.netonvault-issuer, both routed to the oauth2 Service.repospawnerto the wildcard Certificate's two reflector namespace lists.Depends on the terraform-authentik
repospawnerclient being applied andkv/kubernetes/namespace/repospawner/default/oauth-credentials+.../woodpeckerbeing seeded.