Bug: ArgoCD apps point to wrong source repos + external Forgejo URLs #203
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-platform#203
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Type
Bug
Lineage
Standalone — discovered during westside-app deployment. All ArgoCD apps have the same issue.
Repo
forgejo_admin/pal-e-platformWhat Broke
All ArgoCD applications point to individual app repos (e.g.
westside-app.git/k8s/) instead ofpal-e-deployments.git/overlays/*/prod/. They also use the external Forgejo URL (forgejo.tail5b443a.ts.net) which hits a Tailscale hairpin EOF from inside the cluster.Result: ArgoCD can never auto-sync. Every deploy requires manual
kubectl set image.Repro Steps
kubectl get application westsidekingsandqueens -n argocd -o jsonpath='{.spec.source.repoURL}'https://forgejo.tail5b443a.ts.net/forgejo_admin/westside-app.git(wrong repo, external URL)kubectl get application westsidekingsandqueens -n argocd -o jsonpath='{.status.operationState.message}'ComparisonError: failed to list refs: EOFExpected Behavior
ArgoCD apps should point to:
http://forgejo-http.forgejo.svc.cluster.local:80/forgejo_admin/pal-e-deployments.git(internal URL)overlays/{service}/prodEnvironment
User Story
As a superadmin
I want ArgoCD to auto-sync from pal-e-deployments using internal Forgejo URLs
So that image tag updates in kustomize overlays deploy automatically without manual kubectl intervention
Context
pal-e-services/k3s.tfvarsalready has correctsource_repoandsource_pathfor each service. Theservices.tfcreates ArgoCD apps from these values. Buttofu applyhasn't been run to update the ArgoCD apps since the migration to pal-e-deployments. The apps were created before the overlay migration and never updated.Issue #143 (done) was supposed to fix internal URLs but the ArgoCD apps weren't updated in that pass.
File Targets
Files the agent should modify:
pal-e-services/terraform/services.tf— verify ArgoCD app resource uses internal Forgejo URLpal-e-services/terraform/k3s.tfvars— verify source_repo/source_path are correct per serviceFiles the agent should NOT touch:
pal-e-platform/terraform/— ArgoCD is managed by pal-e-servicesAcceptance Criteria
pal-e-deploymentsrepo with correct overlay pathkubectl get application -n argocdshows Synced for all appsTest Expectations
tofu plan -lock=falseshows ArgoCD app source changeskubectl get application -n argocdshows no ComparisonErrorkubectl get application -n argocd -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.sync.status}{"\n"}{end}'Constraints
tofu plan -lock=falsebefore applyhttp://forgejo-http.forgejo.svc.cluster.local:80/{owner}/{repo}.gitChecklist
Related
project-pal-e-platformforgejo_admin/pal-e-platform#143— original internal URL migration (incomplete)Notes
Scope Review: NEEDS_REFINEMENT
Review note:
review-452-2026-03-26The Terraform code already contains the correct values -- both
services.tf(internal URL on line 148) andk3s.tfvars(all 9 services point topal-e-deployments). The actual work istofu apply, not code modification.Refinement (post review-452)
Addressed findings:
Code is already correct — this is a
tofu apply, not a code change. Reclassifying. The fix is runningtofu applyin pal-e-services, not writing code.Blocked by #196 (MinIO provider) and #197 (state splitting). This ticket cannot move to in_progress until those resolve. Adding
depends:#196,#197to labels.May already be fixed by #200. Need to re-run repro steps after #200's changes. Adding verification step: check if ArgoCD can reach internal Forgejo before doing anything.
Repo mismatch. File targets are in
pal-e-services, notpal-e-platform. Agent must be dispatched to pal-e-services. Noting in constraints.Updated scope
This is NOT a code PR. It's a
tofu applyon pal-e-services after #196 and #197 unblock. The agent should:tofu plan -lock=falsein pal-e-servicesStatus: READY (but blocked by #196, #197)
Scope Review: NEEDS_REFINEMENT
Review note:
review-452-2026-03-27The Terraform code (services.tf + k3s.tfvars) is already correct — all 9 services point to pal-e-deployments with internal URLs. An agent dispatched for this ticket would find nothing to change.
Issues found:
:80port in services.tf line 148 and main.tf line 320 must be removed beforetofu applywill succeed (SOPS CMP EOF failure). That fix is tracked separately in pal-e-services#36 (board item #460):80fix, it overlaps with #36argocd_repository_credentials.forgejoin main.tf also has the:80issue — not mentioned in this ticketRecommendation: Merge with or mark as blocked-by pal-e-services#36, refile on correct repo, and clarify whether this produces a PR or is an operational apply.
Issue body updated per scope review corrections.