Skip to content

Commit df56d67

Browse files
Akrogjdef
authored andcommitted
spec: Volume from snapshot with different size
There's no mention in the spec to expected behavior when the required_bytes in CreateVolumeRequest's capacity_range is larger or smaller than that of the VolumeContentSource. This may lead to different interpretations on the behavior. We are now explicit about expected behavior. If it's smaller we fail with OUT_OF_RANGE, and if it's greater the volume must be extended by the driver if necessary.
1 parent c7269ca commit df56d67

File tree

3 files changed

+79
-74
lines changed

3 files changed

+79
-74
lines changed

csi.proto

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ message CreateVolumeRequest {
182182

183183
// This field is OPTIONAL. This allows the CO to specify the capacity
184184
// requirement of the volume to be provisioned. If not specified, the
185-
// Plugin MAY choose an implementation-defined capacity range.
185+
// Plugin MAY choose an implementation-defined capacity range. If
186+
// specified it MUST always be honored, even when creating volumes
187+
// from a source; which may force some backends to internally extend
188+
// the volume after creating it.
189+
186190
CapacityRange capacity_range = 2;
187191

188192
// The capabilities that the provisioned volume MUST have: the Plugin

0 commit comments

Comments
 (0)