Skip to content

Commit 0f2c017

Browse files
author
Andi Li
committed
Add rollback proc
1 parent 3b2bedc commit 0f2c017

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

keps/sig-storage/177-volume-snapshot/tighten-validation-webhook-crd.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,13 @@ Once we are sure no invalid data is persisted, we can switch to CRD schema-enfor
362362

363363
If users do not completely remove their invalid objects before upgrading their CRD definition, it should be possible to downgrade the CRD definition to allow invalid objects to get deleted.
364364

365+
The rollback procedure would look like this:
366+
1. New v1 api with v1beta1 storage is causing problems and user wants to rollback
367+
2. Control plane (including CRD + snapshot controller) is rolled back and the v1 version is dropped. Objects still persist though since it's stored as v1beta1
368+
3. User fixes their problems with invalid objects
369+
4. User upgrades the control plane again.
370+
5. In an n+2 release, once all the invalid objects are purged, we can switch the storage version to v1.
371+
365372
#### Current Controller validation of OneOf semantic
366373

367374
##### Handling VolumeSnapshot.

0 commit comments

Comments
 (0)