From 8e9ac37583fb21b75e27db17ae6398615e2bbd87 Mon Sep 17 00:00:00 2001 From: rock Date: Sat, 24 Oct 2026 03:35:52 -0700 Subject: [PATCH] chore(argocd): delete the azhi-riotpiao Application The Application pointed at github.com/ToyoGlobal/azhi-infra, branch feat/azi-riotpiao-cnpg, path k8s/overlays/azi-riotpiao. It never reconciled: status stayed Unknown because the source repository could not be read, and the destination namespace azi-riotpiao was never created. ArgoCD reported it as an OutOfSync managed resource of homelab-root with nothing behind it. Also drops the ToyoGlobal URL from the AppProject allowlist. No manifest from that repository is referenced any more, so the allowlist entry is dead weight. Not touched here, because it is not in git: Secret azhi-infra-github in namespace argocd holds the read-only GitHub credential for that repository. Delete it separately once no other Application needs the repo. The live Application object was deleted by hand. Until this commit reaches main, the next homelab-root sync recreates it, because main still declares it. --- k8s/argocd/apps/72-azhi-riotpiao.yaml | 36 ------------------------ k8s/argocd/projects/homelab-project.yaml | 6 ---- 2 files changed, 42 deletions(-) delete mode 100644 k8s/argocd/apps/72-azhi-riotpiao.yaml diff --git a/k8s/argocd/apps/72-azhi-riotpiao.yaml b/k8s/argocd/apps/72-azhi-riotpiao.yaml deleted file mode 100644 index 784eeaa..0000000 --- a/k8s/argocd/apps/72-azhi-riotpiao.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: azhi-riotpiao - namespace: argocd - annotations: - argocd.argoproj.io/sync-wave: '8' -spec: - project: homelab - source: - # Private GitHub. The read-only credential is Secret azhi-infra-github in - # namespace argocd, created out-of-band. - repoURL: https://github.com/ToyoGlobal/azhi-infra.git - # The repository's default branch. It is not `main`: this repo's work - # happens on the staging slice branch, and `main` is behind it. - targetRevision: feat/azi-riotpiao-cnpg - # One directory, because ArgoCD reads a single path per source. That - # directory is a root kustomization over foundation, postgres and - # azhi-server. - path: k8s/overlays/azi-riotpiao - destination: - server: https://kubernetes.default.svc - namespace: azi-riotpiao - syncPolicy: - automated: - prune: true - selfHeal: true - syncOptions: - - CreateNamespace=true - # The two Secrets this namespace needs are credentials, so they are created - # by hand and NOT by this Application: - # acr-pull — the private Alibaba ACR pull credential - # azhi-riotpiao-app-env — DB credentials, JWT secrets, AES key - # A missing imagePullSecret fails the pod outright and a missing app-env - # Secret leaves it in CreateContainerConfigError, which is the intended - # loud failure rather than a pod that runs against unknown values. diff --git a/k8s/argocd/projects/homelab-project.yaml b/k8s/argocd/projects/homelab-project.yaml index eeb1e25..bc38dce 100644 --- a/k8s/argocd/projects/homelab-project.yaml +++ b/k8s/argocd/projects/homelab-project.yaml @@ -16,12 +16,6 @@ spec: - https://github.com/Riotpiaole/Poimen-memory.git - https://github.com/Riotpiaole/Poimen-workflows.git - https://github.com/Riotpiaole/poimen*.git - # ToyoGlobal (GitHub, private). The azhi-infra Application reads its - # manifests from here, so the URL must be listed or ArgoCD rejects the - # Application with "repository not permitted". A read-only credential for - # this repo lives in Secret azhi-infra-github in namespace argocd; it is - # created out-of-band and is not committed, because it is a credential. - - https://github.com/ToyoGlobal/azhi-infra.git # In-cluster Forgejo repos — explicit allowlist (no wildcard) - https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git - https://forgejo.riotpiao.com/riotpiao-poimen/homelab-frontend.git