Files
manoon-headless/k8s
Unchained a636d29f0b
Some checks failed
Build and Deploy / build (push) Has been cancelled
fix(k8s): handle existing workspace on pod restart
The clone init container was failing with 'destination path already exists'
when the pod restarted. EmptyDir volumes persist across container restarts
but init containers run again.

Now checks if workspace exists:
- If .git directory exists: fetch and reset to latest master
- If not: clean and clone fresh

This fixes the CrashLoopBackOff caused by failed clone attempts.
2026-04-05 05:17:30 +02:00
..