Commit Graph

6 Commits

Author SHA1 Message Date
Hermes Platform Engineer
0aeaa2b051 fix(myorg-assistant): git-sync self-heals clone + normalizes gitea host to git.rogi.casa
Root cause of the git-sync failure: the cron pod only ran git pull/push
against /data/myorg but never ensured the repo existed, and the GIT_REPO_URL
secret historically pointed at the wrong Gitea subdomain (gitea.rogi.casa),
which 526s through Cloudflare -> 'Not a git repository: /data/myorg'.

Fixes:
1. Add an idempotent git-clone initContainer (guarded by [ ! -d /data/myorg/.git ])
   so the cron job self-heals and actually clones on first run.
2. Normalize GIT_REPO_URL host to git.rogi.casa at runtime (sed), so the clone
   works even if the cluster secret still contains the stale gitea.rogi.casa host.
   The working subdomain is git.rogi.casa.

Evidence (Loki, last 24h+):
  {namespace="myorg-assistant",pod=~"myorg-git-sync.+"}
  -> Pull/Push: Error: Not a git repository: /data/myorg (every run)
  -> job swallowed error, exited 0, so looked successful

Risk: low. initContainer mirrors the Deployment's; host-normalization is
idempotent. No RBAC/CRD/ArgoCD/volume changes.
2026-07-19 16:12:38 +00:00
Roger Oriol
0b27cefd13 myorg assistant cron jobs env variables 2026-07-15 00:32:23 +02:00
Roger Oriol
a5b90994a4 fix myorg assistant 2026-07-11 19:22:57 +02:00
Platform Engineer
0794153e56 fix(myorg-assistant): point cronjobs at registry image + add imagePullSecrets
CronJob pods were stuck in ImagePullBackOff because they referenced
the local-only image 'myorg-assistant:latest' which is not present
on the node. Switch all 5 cronjobs to the Gitea registry image
git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
(matching the Deployment), set imagePullPolicy: Always, and add
imagePullSecrets: gitea-registry so they can authenticate to the
private registry.
2026-07-06 14:11:44 +00:00
Roger Oriol
153cf16194 refactor ingresses 2026-06-23 00:26:29 +02:00
Roger Oriol
a895d4cf33 myorg assistant 2026-02-03 23:56:31 +01:00