fix(forgejo): restore the initContainers key #54 lost (unblocks the apps Kustomization) #57

Merged
sirius merged 1 commit from fix/runner-arm64-initcontainers into master 2026-11-27 05:46:41 +00:00
Owner

Unblocks the cluster's GitOps path. #54 (secops F6) put the new fix-data-perms init container at the tolerations list's indentation and deleted the initContainers: key, so the manifest parses as a malformed toleration and 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

Because Flux dry-runs the whole rendered set before applying, every object in apps/home was blocked — nothing could be applied, including any secret rotation. Nothing was pruned or damaged: a rejected revision never applies.

One-line structural fix; the init container's 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: 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.

Unblocks the cluster's GitOps path. #54 (secops F6) put the new `fix-data-perms` init container at the `tolerations` list's indentation and deleted the `initContainers:` key, so the manifest parses as a *malformed toleration* and 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 ``` Because Flux dry-runs the whole rendered set before applying, **every** object in `apps/home` was blocked — nothing could be applied, including any secret rotation. Nothing was pruned or damaged: a rejected revision never applies. One-line structural fix; the init container's 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: 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.
#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.
sirius merged commit da5530200e into master 2026-11-27 05:46:41 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/homek8s!57
No description provided.