1 Commits

Author SHA1 Message Date
Hermes Platform Engineer
45a9948682 fix(myorg-assistant): normalize GIT_REPO_URL host to git.rogi.casa in git-sync
PR #26 added the git-clone initContainer but still trusted the GIT_REPO_URL
secret verbatim. That secret historically contains gitea.rogi.casa, which
526s through Cloudflare, so the clone still fails with 'Not a git repository'.

Normalize the host to git.rogi.casa at runtime (sed) so the clone works
regardless of the secret's stale host. Directly addresses the subdomain bug.
2026-07-19 16:13:45 +00:00
4 changed files with 7 additions and 22 deletions

View File

@@ -25,8 +25,6 @@ metadata:
namespace: gitea
labels:
app: gitea
annotations:
kubectl.kubernetes.io/restartedAt: "2026-07-21T13:30:00Z"
spec:
replicas: 1
selector:
@@ -103,8 +101,6 @@ metadata:
namespace: gitea
labels:
app: gitea-runner
annotations:
kubectl.kubernetes.io/restartedAt: "2026-07-21T13:30:00Z"
spec:
replicas: 1
selector:
@@ -119,14 +115,7 @@ spec:
kubernetes.io/arch: arm64
containers:
- name: gitea-runner
image: vegardit/gitea-act-runner:v0.12.0
resources:
requests:
memory: "512Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
image: vegardit/gitea-act-runner:latest
env:
- name: GITEA_INSTANCE_URL
valueFrom:

View File

@@ -112,13 +112,6 @@ spec:
env:
- name: STORE_MODEL_IN_DB
value: "True"
resources:
requests:
memory: "512Mi"
cpu: "250m"
limits:
memory: "2Gi"
cpu: "1000m"
volumes:
- name: config-volume
configMap:

View File

@@ -15,10 +15,9 @@ spec:
labels:
app: prometheus
spec:
# Target the nucbox (amd64, 24Gi RAM) which is the only node with enough memory for Prometheus.
# Prevent scheduling on Raspberry Pi due to resource requirements (512Mi-1Gi memory, 500m-1000m CPU)
nodeSelector:
kubernetes.io/os: linux
kubernetes.io/arch: amd64
hardware: high-memory
serviceAccountName: prometheus
containers:
- name: prometheus

View File

@@ -31,6 +31,10 @@ spec:
- sh
- -c
- |
# Normalize the repo URL host to the correct Gitea subdomain.
# The GIT_REPO_URL secret historically contained gitea.rogi.casa,
# which 526s through Cloudflare; the working subdomain is git.rogi.casa.
export GIT_REPO_URL="$(echo "${GIT_REPO_URL}" | sed -E 's#https?://[^/@]+@?gitea\.rogi\.casa#https://'"${GIT_USERNAME}"':'"${GIT_TOKEN}"'@git.rogi.casa#')"
if [ ! -d /data/myorg/.git ]; then
echo "Cloning repository..."
git clone ${GIT_REPO_URL} /data/myorg