Permit worker-only RKE2 emptyDir drain opt-in #121
No reviewers
Labels
No labels
app-migration
bug
ci-cd
cluster
Documentation
duplicate
enhancement
gpu
invalid
networking
question
security
Storage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Homelab/workflows!121
Loading…
Reference in a new issue
No description provided.
Delete branch "kiyi/rke2-worker-emptydir"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Platform activation 5048 upgraded control to v1.36.5+rke2r1, then worker drain stopped on normal UDS/Istio emptyDir volumes. The owner explicitly approved worker-only
deleteEmptydirData: true, retaining PVCs and disruption-budget checks. The current reusable validator unconditionally rejects that setting.Permit an explicit boolean emptyDir opt-in for
agent-planonly. Keep server Plans restricted to false, and retain eviction/PDB enforcement,force: false, DaemonSet handling, the 15-minute drain timeout, fixed targets and one-node concurrency. Existing signed-source Plans with false on both roles remain valid. Workflow/job/scan names, credentials, images and privileges are unchanged.Validation: all 86 RKE2 workflow tests pass, including new worker opt-in/legacy compatibility, server rejection, strict boolean typing and PDB/force/timeout checks. The actual prepared Platform manifests and legacy false/false variants both pass the reusable validator. Changed-file Ruff, diff checks and staged native Gitleaks pass. This source-only change requires the normal Library checks, immutable release and stable-v1 promotion before the updated Plan bundle can be built/activated.
Reviewed exact head
3a6101c63b:check()ties the worker opt-in to the exactly namedagent-planand the complementary control-plane selectors;server-planmust retain boolean false.check_drain()requires explicit bool and preserves eviction/PDB behavior, force=false, DaemonSet handling and 15m timeout; fixed target and single-node concurrency checks remain. New focused tests exercise legacy false/false, worker true, server rejection, invalid types and drain safeguards. No new UDS policy/routing or package ownership is introduced in the inspected source. Source approved; Library checks, Workflow acceptance and Repository security are still pending and must pass on this head before merge/release. Forgejo omitted patch hunks, so this review is based on the complete authenticated changed-file source and file inventory, not an authenticated base diff or a completed hosted test run.CI at submission: pending. This is a source-review approval, not a scan verdict; required checks still block merge.