Skip to content

Commit

Permalink
Mark VolumeExpansion capability in PluginCapability deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufied committed Jul 15, 2020
1 parent 4b1c7a3 commit 226ec73
Show file tree
Hide file tree
Showing 3 changed files with 267 additions and 234 deletions.
18 changes: 16 additions & 2 deletions csi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ message PluginCapability {
Type type = 1;
}

// Deprecated - Ability for a plugin to delcare online and offline
// controller expansion capabilities via PluginCapability
// is deprecated. A plugin may support either mode of operation
// without having to declare them in PluginCapability.
message VolumeExpansion {
enum Type {
UNKNOWN = 0;
Expand Down Expand Up @@ -234,8 +238,18 @@ message PluginCapability {
oneof type {
// Service that the plugin supports.
Service service = 1;
// deprecated
VolumeExpansion volume_expansion = 2;
// Deprecated - Ability for a plugin to delcare online and offline
// controller expansion capabilities via PluginCapability
// is deprecated. A plugin may support either mode of operation
// without having to declare them in PluginCapability.
//
// If set a CO will ignore ONLINE and OFFLINE capabilities
// specified in PluginCapability.
// If a plugin can not support controller expansion of published
// and available volumes on a node - it may return
// FAILED_PRECONDITION error and CO should ensure that volume
// is not published before retrying with exponential backoff.
VolumeExpansion volume_expansion = 2 [deprecated=true];
}
}
message ProbeRequest {
Expand Down
Loading

0 comments on commit 226ec73

Please sign in to comment.