Skip to content

fix: make dry-run fail-safe and non-mutating#96

Merged
cstanislawski merged 1 commit into
mainfrom
fix/dry-run-safety
Jul 15, 2026
Merged

fix: make dry-run fail-safe and non-mutating#96
cstanislawski merged 1 commit into
mainfrom
fix/dry-run-safety

Conversation

@cstanislawski

Copy link
Copy Markdown
Owner

No description provided.

@cstanislawski cstanislawski self-assigned this Jul 15, 2026
@cstanislawski

Copy link
Copy Markdown
Owner Author

Dry-run must never change the resource it is evaluating.

Previously, only literal true enabled resource dry-run. Other valid boolean spellings were ignored, invalid values could allow deletion or restart to proceed, and dry-run still converted relative annotations with an update. Recurring schedules could also immediately requeue the same overdue occurrence indefinitely.

This change parses boolean values deliberately and fails on invalid input with a warning Event. Dry-run now performs no resource writes: no annotation conversion, restart patch, deletion, or recurring state update. Planning logs and Events remain, without requeueing the same occurrence.

@cstanislawski
cstanislawski marked this pull request as ready for review July 15, 2026 15:52
@cstanislawski
cstanislawski merged commit e1f70e8 into main Jul 15, 2026
3 checks passed
@cstanislawski
cstanislawski deleted the fix/dry-run-safety branch July 15, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant