fix(forgejo): restore the initContainers key #54 lost, unblocking the apps Kustomization

#54 (secops F6) inserted the new fix-data-perms init container at the
tolerations list indentation instead of under an initContainers key, and dropped
the key itself. YAML still parsed (a list item with name/image/... is just a
malformed toleration), so the merge was green, but the API rejects it:

  Deployment.apps "forgejo-runner-arm64" is invalid:
  spec.template.spec.tolerations[1].operator: Invalid value: "": operator must
  be Exists when key is empty

That failed the dry-run of the whole apps Kustomization, so nothing in
apps/home could be applied at all - including any secret rotation - until it was
fixed. Nothing was pruned or broken in the cluster: the rejected revision never
applied.

Restores the initContainers: key above the block; the container's own body is
untouched, so F6's intent (re-own the PVC as 1000:1000 instead of chmod 666 on
the dind socket) is preserved.

Verified: the file parses to tolerations=[dedicated/Equal/network/PreferNoSchedule],
initContainers=[fix-data-perms], containers=[dind, runner]; server-side dry-run of
this Deployment succeeds; server-side dry-run of all 116 non-Secret objects in
apps/home reports no errors.
This commit is contained in:
Sirius DevOps 2026-11-27 00:46:16 -05:00
commit c1d29ad87a

View file

@ -35,6 +35,7 @@ spec:
# No supplementalGroups: there is no host docker socket and no host
# docker gid to match any more. The only daemon this runner talks to is
# the privileged `dind` sidecar below.
initContainers:
# The runner container runs as uid 1000 (the image's own user) and needs
# to read its registration and write the actions cache on this PVC.
# Both were created by root before this change, so re-own them once per