Commit 2ab64cd
feat(api): StoragePool.Spec.DestroyOnDelete consent flag (Phase 10.8 step)
Operators opt into the destructive teardown path explicitly: with
DestroyOnDelete=true (default false), deleting the StoragePool
CRD also runs vgremove --force / zpool destroy + wipefs -a so the
discovery loop can re-publish the freed devices as
PhysicalDevice CRDs.
Default-false matches the GitOps "you delete the manifest, the
CRD goes away, but the on-disk data sticks around for manual
rescue" model — safer than the alternative even though it leaks
unmanaged VGs/zpools across deletes.
The reconciler half (finalizer + actual vgremove call) lands
once Phase 10.1 promotes the satellite's StoragePool reconciler
to a controller-runtime watcher; this commit just lays down the
typed field + admission validation.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>1 parent 8e4ceb4 commit 2ab64cd
2 files changed
Lines changed: 24 additions & 0 deletions
File tree
- api/v1alpha1
- config/crd/bases
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
56 | 68 | | |
57 | 69 | | |
58 | 70 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
42 | 54 | | |
43 | 55 | | |
44 | 56 | | |
| |||
0 commit comments