fix(deploy): reject unsafe per-file pruning #85

Merged
forust merged 1 commits from fix/deploy-prune-guard into main 2026-10-06 14:57:22 +00:00
Owner

APPLY_PRUNE=true passes the same selector to each individual manifest apply. Objects declared in other files can then be treated as absent and removed.

Reject that option during validation and before Kubernetes apply starts. Remove the per-file prune arguments; obsolete resources must be removed explicitly until deployment supports a complete desired set.

Validation: Bash syntax and ShellCheck; confirmed rejection before cluster calls. APPLY_PRUNE=false retains normal apply behavior. The option is disabled by default.

APPLY_PRUNE=true passes the same selector to each individual manifest apply. Objects declared in other files can then be treated as absent and removed. Reject that option during validation and before Kubernetes apply starts. Remove the per-file prune arguments; obsolete resources must be removed explicitly until deployment supports a complete desired set. Validation: Bash syntax and ShellCheck; confirmed rejection before cluster calls. APPLY_PRUNE=false retains normal apply behavior. The option is disabled by default.
forust added 1 commit 2026-10-06 14:57:12 +00:00
fix(deploy): reject destructive per-file pruning before apply
renovate-ci / validate-renovate (push) Skipped
ci / lint-compose (push) Successful in 14s
ci / lint-actionlint (push) Successful in 8s
ci / lint-shellcheck (push) Successful in 13s
ci / lint-prettier (push) Successful in 19s
ci / lint-ruff (push) Successful in 8s
ci / lint-yaml (push) Successful in 12s
ci / lint-dockerfiles (push) Successful in 8s
ci / validate (push) Successful in 10s
ci / build (push) Skipped
ci / lint-compose (pull_request) Successful in 12s
ci / lint-actionlint (pull_request) Successful in 5s
ci / lint-shellcheck (pull_request) Successful in 11s
ci / lint-prettier (pull_request) Successful in 16s
ci / lint-ruff (pull_request) Successful in 8s
ci / lint-yaml (pull_request) Successful in 11s
ci / lint-dockerfiles (pull_request) Successful in 7s
ci / validate (pull_request) Successful in 7s
ci / build (pull_request) Skipped
renovate-ci / validate-renovate (pull_request) Successful in 10s
c098807aa4
forust force-pushed fix/deploy-prune-guard from f4107df09e to c098807aa4 2026-10-06 14:57:12 +00:00 Compare
forust merged commit 88705fec88 into main 2026-10-06 14:57:22 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: forust/homelab#85