-
Notifications
You must be signed in to change notification settings - Fork 361
Open
Labels
lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.
Description
As the title says, there is a great possibility that the application-specific Operator
would leverage PVC
's Annotation
for storing custom data. The custom data will tell storage provisioner how CSI drive create volume correctly.
Here is already existing logic for provision volume :
// Create a CSI CreateVolumeRequest and Response
req := csi.CreateVolumeRequest{
Name: pvName,
Parameters: options.Parameters,
VolumeCapabilities: []*csi.VolumeCapability{
{
AccessType: accessType,
AccessMode: accessMode,
},
},
CapacityRange: &csi.CapacityRange{
RequiredBytes: int64(volSizeBytes),
},
}
Note : more details
CSI Plugin specifies that CreateVolumeRequest
's field Parameters
is OPTIONAL
and opaque.
What I am suggesting is that we could pass in PVC
's Annotation
in addition to Storageclass.Parameter
.
kindule, kmova, flamingspaz, ahilsend, sun7927 and 31 more
Metadata
Metadata
Assignees
Labels
lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.