From 479190ef4788f4ea4e402eedb17a07a80945b2fe Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Tue, 5 May 2026 02:25:14 -0500 Subject: [PATCH] migrate all Argo CD repo sources from Legion Gitea to GKE Gitea --- servers/legion/apps/backup.yaml | 2 +- servers/legion/apps/ci-config.yaml | 4 ++-- servers/legion/apps/dharma.yaml | 2 +- servers/legion/apps/external-secrets-config.yaml | 2 +- servers/legion/apps/fornax.yaml | 6 +++--- servers/legion/apps/gitea-config.yaml | 2 +- servers/legion/apps/gke-apps.yaml | 2 +- servers/legion/apps/monitoring-config.yaml | 2 +- servers/legion/apps/mudcraft.yaml | 2 +- servers/legion/apps/neuron-config.yaml | 2 +- servers/legion/apps/neuron-daemon.yaml | 2 +- servers/legion/apps/neuron-dev.yaml | 2 +- servers/legion/apps/neuron-marketing.yaml | 2 +- servers/legion/apps/neuron-prod-project.yaml | 2 +- servers/legion/apps/neuron-prod.yaml | 2 +- servers/legion/apps/neuron-stage.yaml | 2 +- servers/legion/apps/neuron-swarm.yaml | 2 +- servers/legion/apps/neuron-tim.yaml | 2 +- servers/legion/apps/neuron-web.yaml | 2 +- servers/legion/apps/ollama-config.yaml | 2 +- servers/legion/apps/packages-config.yaml | 2 +- servers/legion/apps/postgres-config.yaml | 2 +- servers/legion/apps/registry-config.yaml | 2 +- servers/legion/apps/vault-config.yaml | 2 +- servers/legion/argocd.tf | 6 +++--- servers/legion/k8s/gitea-runner/Dockerfile | 2 +- servers/legion/k8s/gitea-runner/deployment.yaml | 6 ++---- 27 files changed, 33 insertions(+), 35 deletions(-) diff --git a/servers/legion/apps/backup.yaml b/servers/legion/apps/backup.yaml index 65a1fcb..9c26e70 100644 --- a/servers/legion/apps/backup.yaml +++ b/servers/legion/apps/backup.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/backup destination: diff --git a/servers/legion/apps/ci-config.yaml b/servers/legion/apps/ci-config.yaml index f185bff..3fb690c 100644 --- a/servers/legion/apps/ci-config.yaml +++ b/servers/legion/apps/ci-config.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/github-runner destination: @@ -27,7 +27,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/gitea-runner destination: diff --git a/servers/legion/apps/dharma.yaml b/servers/legion/apps/dharma.yaml index 46c511f..f4c4001 100644 --- a/servers/legion/apps/dharma.yaml +++ b/servers/legion/apps/dharma.yaml @@ -6,7 +6,7 @@ metadata: spec: project: neuron-prod source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/neuron-technologies/dharma destination: diff --git a/servers/legion/apps/external-secrets-config.yaml b/servers/legion/apps/external-secrets-config.yaml index a2dcb26..7bf714b 100644 --- a/servers/legion/apps/external-secrets-config.yaml +++ b/servers/legion/apps/external-secrets-config.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/external-secrets destination: diff --git a/servers/legion/apps/fornax.yaml b/servers/legion/apps/fornax.yaml index 769ed3c..37e2f32 100644 --- a/servers/legion/apps/fornax.yaml +++ b/servers/legion/apps/fornax.yaml @@ -7,7 +7,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/fornax/coordinator destination: @@ -29,7 +29,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/fornax/ui destination: @@ -51,7 +51,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/fornax/grafana destination: diff --git a/servers/legion/apps/gitea-config.yaml b/servers/legion/apps/gitea-config.yaml index fa81d51..a200f89 100644 --- a/servers/legion/apps/gitea-config.yaml +++ b/servers/legion/apps/gitea-config.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/gitea destination: diff --git a/servers/legion/apps/gke-apps.yaml b/servers/legion/apps/gke-apps.yaml index 9ce6819..1357d37 100644 --- a/servers/legion/apps/gke-apps.yaml +++ b/servers/legion/apps/gke-apps.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/gcp/k8s/argocd-apps destination: diff --git a/servers/legion/apps/monitoring-config.yaml b/servers/legion/apps/monitoring-config.yaml index a84d505..b5e46e9 100644 --- a/servers/legion/apps/monitoring-config.yaml +++ b/servers/legion/apps/monitoring-config.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/monitoring destination: diff --git a/servers/legion/apps/mudcraft.yaml b/servers/legion/apps/mudcraft.yaml index c872fb0..7904f95 100644 --- a/servers/legion/apps/mudcraft.yaml +++ b/servers/legion/apps/mudcraft.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/mudcraft destination: diff --git a/servers/legion/apps/neuron-config.yaml b/servers/legion/apps/neuron-config.yaml index c058e73..1f33113 100644 --- a/servers/legion/apps/neuron-config.yaml +++ b/servers/legion/apps/neuron-config.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/neuron destination: diff --git a/servers/legion/apps/neuron-daemon.yaml b/servers/legion/apps/neuron-daemon.yaml index 4b1ce9d..bc93451 100644 --- a/servers/legion/apps/neuron-daemon.yaml +++ b/servers/legion/apps/neuron-daemon.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/neuron-technologies/daemon destination: diff --git a/servers/legion/apps/neuron-dev.yaml b/servers/legion/apps/neuron-dev.yaml index 0266d95..8297412 100644 --- a/servers/legion/apps/neuron-dev.yaml +++ b/servers/legion/apps/neuron-dev.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/neuron-technologies/dev destination: diff --git a/servers/legion/apps/neuron-marketing.yaml b/servers/legion/apps/neuron-marketing.yaml index a274196..8121a39 100644 --- a/servers/legion/apps/neuron-marketing.yaml +++ b/servers/legion/apps/neuron-marketing.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/neuron-technologies/marketing destination: diff --git a/servers/legion/apps/neuron-prod-project.yaml b/servers/legion/apps/neuron-prod-project.yaml index dae22ba..a40fd61 100644 --- a/servers/legion/apps/neuron-prod-project.yaml +++ b/servers/legion/apps/neuron-prod-project.yaml @@ -15,7 +15,7 @@ spec: # Only allow deployments sourced from the infrastructure repo. sourceRepos: - - "http://gitea.git.svc.cluster.local:3000/will/infrastructure.git" + - "https://git.neuralplatform.ai/will/infrastructure.git" - "https://code.forgejo.org" - "registry.neuralplatform.ai" diff --git a/servers/legion/apps/neuron-prod.yaml b/servers/legion/apps/neuron-prod.yaml index 20ebe8b..9342591 100644 --- a/servers/legion/apps/neuron-prod.yaml +++ b/servers/legion/apps/neuron-prod.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/neuron-technologies/prod destination: diff --git a/servers/legion/apps/neuron-stage.yaml b/servers/legion/apps/neuron-stage.yaml index 4d1d02a..cfc721e 100644 --- a/servers/legion/apps/neuron-stage.yaml +++ b/servers/legion/apps/neuron-stage.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/neuron-technologies/stage destination: diff --git a/servers/legion/apps/neuron-swarm.yaml b/servers/legion/apps/neuron-swarm.yaml index 1264296..68bf044 100644 --- a/servers/legion/apps/neuron-swarm.yaml +++ b/servers/legion/apps/neuron-swarm.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/neuron-technologies/swarm destination: diff --git a/servers/legion/apps/neuron-tim.yaml b/servers/legion/apps/neuron-tim.yaml index abcd250..3454048 100644 --- a/servers/legion/apps/neuron-tim.yaml +++ b/servers/legion/apps/neuron-tim.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/neuron-technologies/tim destination: diff --git a/servers/legion/apps/neuron-web.yaml b/servers/legion/apps/neuron-web.yaml index c9e5de6..cc78769 100644 --- a/servers/legion/apps/neuron-web.yaml +++ b/servers/legion/apps/neuron-web.yaml @@ -12,7 +12,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/neuron-technologies/web destination: diff --git a/servers/legion/apps/ollama-config.yaml b/servers/legion/apps/ollama-config.yaml index 579769e..e803fae 100644 --- a/servers/legion/apps/ollama-config.yaml +++ b/servers/legion/apps/ollama-config.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/ollama destination: diff --git a/servers/legion/apps/packages-config.yaml b/servers/legion/apps/packages-config.yaml index b331824..fb8a775 100644 --- a/servers/legion/apps/packages-config.yaml +++ b/servers/legion/apps/packages-config.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/packages destination: diff --git a/servers/legion/apps/postgres-config.yaml b/servers/legion/apps/postgres-config.yaml index 352c4d9..ff5e7b0 100644 --- a/servers/legion/apps/postgres-config.yaml +++ b/servers/legion/apps/postgres-config.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/postgres destination: diff --git a/servers/legion/apps/registry-config.yaml b/servers/legion/apps/registry-config.yaml index c977c1c..6bc6ccb 100644 --- a/servers/legion/apps/registry-config.yaml +++ b/servers/legion/apps/registry-config.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/registry destination: diff --git a/servers/legion/apps/vault-config.yaml b/servers/legion/apps/vault-config.yaml index b25920f..ef748f8 100644 --- a/servers/legion/apps/vault-config.yaml +++ b/servers/legion/apps/vault-config.yaml @@ -6,7 +6,7 @@ metadata: spec: project: default source: - repoURL: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + repoURL: https://git.neuralplatform.ai/will/infrastructure.git targetRevision: main path: servers/legion/k8s/vault destination: diff --git a/servers/legion/argocd.tf b/servers/legion/argocd.tf index 0eac548..9c61f7a 100644 --- a/servers/legion/argocd.tf +++ b/servers/legion/argocd.tf @@ -36,7 +36,7 @@ resource "helm_release" "argocd" { server.insecure: true # TLS terminated at Traefik repositories: gitea-infrastructure: - url: http://gitea.git.svc.cluster.local:3000/will/infrastructure.git + url: https://git.neuralplatform.ai/will/infrastructure.git name: infrastructure type: git YAML @@ -96,7 +96,7 @@ resource "kubernetes_secret" "argocd_gitea_repo" { data = { type = "git" - url = "http://gitea.git.svc.cluster.local:3000/will/infrastructure.git" + url = "https://git.neuralplatform.ai/will/infrastructure.git" username = "will" password = var.gitea_api_token } @@ -136,7 +136,7 @@ resource "kubernetes_manifest" "argocd_root_app" { spec = { project = "default" source = { - repoURL = "http://gitea.git.svc.cluster.local:3000/will/infrastructure.git" + repoURL = "https://git.neuralplatform.ai/will/infrastructure.git" targetRevision = "main" path = "servers/legion/apps" } diff --git a/servers/legion/k8s/gitea-runner/Dockerfile b/servers/legion/k8s/gitea-runner/Dockerfile index 3e3d0f3..59f8d1d 100644 --- a/servers/legion/k8s/gitea-runner/Dockerfile +++ b/servers/legion/k8s/gitea-runner/Dockerfile @@ -105,7 +105,7 @@ RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \ # (which sets the reverse redirect + CF Access headers). The system-level rule # here is a safe baseline; the init script wins because it runs after. RUN git config --system \ - url."http://gitea.git.svc.cluster.local:3000/".insteadOf \ + url."http://gitea.gitea.svc.cluster.local:3000/".insteadOf \ "https://git.neuralplatform.ai/" COPY git-cf-access-init.sh /usr/local/bin/git-cf-access-init.sh diff --git a/servers/legion/k8s/gitea-runner/deployment.yaml b/servers/legion/k8s/gitea-runner/deployment.yaml index 1ce5510..593045f 100644 --- a/servers/legion/k8s/gitea-runner/deployment.yaml +++ b/servers/legion/k8s/gitea-runner/deployment.yaml @@ -55,8 +55,7 @@ spec: CF_ACCESS_CLIENT_ID: "${CF_ACCESS_CLIENT_ID}" CF_ACCESS_CLIENT_SECRET: "${CF_ACCESS_CLIENT_SECRET}" BASH_ENV: "/usr/local/bin/git-cf-access-init.sh" - extra_hosts: - - "gitea.git.svc.cluster.local:10.43.15.98" + extra_hosts: [] EOF envFrom: - secretRef: @@ -149,8 +148,7 @@ spec: CF_ACCESS_CLIENT_ID: "${CF_ACCESS_CLIENT_ID}" CF_ACCESS_CLIENT_SECRET: "${CF_ACCESS_CLIENT_SECRET}" BASH_ENV: "/usr/local/bin/git-cf-access-init.sh" - extra_hosts: - - "gitea.git.svc.cluster.local:10.43.15.98" + extra_hosts: [] EOF envFrom: - secretRef: