Commit 0eaa264
Improve log clarity for delete-olm-operator dry-run mode
During incident response, SREs ran the delete-olm-operator job without
the FORCE=y parameter and incorrectly assumed the job had completed its
work when it was only describing what would be deleted. This led to
operational confusion and extended incident duration.
Changes:
- Add prominent dry-run mode banner at script start
- Prefix all dry-run messages with [DRY-RUN]
- Change "Will delete" to "Would delete" to clarify hypothetical actions
- Add final summary banner for both dry-run and execution modes
- Include clear instructions to execute with --params FORCE=y
These changes make it immediately obvious whether the script is running
in dry-run mode or actually executing deletions, preventing operational
mistakes during incident response.
Related: https://issues.redhat.com/browse/SREP-3321
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Chris Collins <collins.christopher@gmail.com>1 parent d9265ba commit 0eaa264
1 file changed
Lines changed: 36 additions & 5 deletions
Lines changed: 36 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
21 | 33 | | |
22 | 34 | | |
23 | 35 | | |
| |||
41 | 53 | | |
42 | 54 | | |
43 | 55 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
47 | 59 | | |
48 | 60 | | |
49 | | - | |
| 61 | + | |
50 | 62 | | |
51 | 63 | | |
52 | 64 | | |
| |||
72 | 84 | | |
73 | 85 | | |
74 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
0 commit comments