modified initcontainer

This commit is contained in:
2026-01-14 20:14:38 +01:00
parent edcbb67431
commit f5f255e8d9
+12 -2
View File
@@ -1965,10 +1965,14 @@ spec:
initContainers:
- name: build-bookmarks-index
image: python:3.12-alpine
securityContext:
runAsUser: 0
runAsGroup: 0
allowPrivilegeEscalation: false
command: ["/bin/sh", "-c"]
args:
- |
pip install --no-cache-dir pyyaml >/dev/null
apk add --no-cache py3-yaml >/dev/null
python - <<'PY'
import json, os, yaml
@@ -1997,7 +2001,7 @@ spec:
"group": group_title,
})
# de-dupe by URL (keep first)
# de-dupe by URL
seen = set()
out = []
for it in items:
@@ -2012,6 +2016,12 @@ spec:
print(f"Wrote {len(out)} bookmarks -> /app/assets/bookmarks.json")
PY
volumeMounts:
- name: config
mountPath: /config
readOnly: true
- name: assets
mountPath: /app/assets
volumeMounts:
- name: config
mountPath: /config