Skip to content

Commit 171daba

Browse files
author
Mayank Kumar
committed
add a section on upgrade downgrade
1 parent 0ef4618 commit 171daba

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

storage/pv-to-rbd-mapping.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ and hence can accommodate any pvc names and namespaces which are stored as arbit
6969
It also leaves room for storing any other metadata about the PVC.
7070
7171
72+
### Upgrade/Downgrade Behavior
73+
74+
#### Upgrading from a K8s version without this metadata to a version with this metadata
75+
The metadata for image is populated on CreateImage. After an upgrade, existing RBD Images will not have that
76+
metadata set. When the next AttachDisk happens, we can check if the metadata is not set, set it. Cluster
77+
administrators could also run a one time script to set this manually. For all newly created RBD images,
78+
the rbd image metadata will be set properly.
79+
80+
#### Downgrade from a K8s version with this metadata to a version without this metadata
81+
After a downgrade, all existing RBD images will have the metadata set. New RBD images created after the
82+
downgrade will not have this metadata.
83+
7284
## Proposal 1
7385
7486
Make the RBD Image name as base64 encoded PVC name(namespace+name)

0 commit comments

Comments
 (0)