Skip to content

Commit

Permalink
encryptionkeyrotation: Add volume capabilities
Browse files Browse the repository at this point in the history
This patch adds the option to pass the CSI
volume capabilities with the
EncryptionKeyRotateRequest.

Signed-off-by: Niraj Yadav <[email protected]>
  • Loading branch information
black-dragon74 committed Jul 18, 2024
1 parent 12dd215 commit 620783b
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 35 deletions.
5 changes: 5 additions & 0 deletions encryptionkeyrotation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ message EncryptionKeyRotateRequest {
// Secrets required by the plugin to complete the request.
map<string, string> secrets = 5 [(csi.v1.csi_secret) = true];
// Volume capability describing how the CO intends to use this volume.
// This allows SP to determine if volume is being used as a block
// device or mounted file system. This is OPTIONAL.
csi.v1.VolumeCapability volume_capability = 6;
}
```

Expand Down
5 changes: 5 additions & 0 deletions encryptionkeyrotation/encryptionkeyrotation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ message EncryptionKeyRotateRequest {

// Secrets required by the plugin to complete the request.
map<string, string> secrets = 5 [(csi.v1.csi_secret) = true];

// Volume capability describing how the CO intends to use this volume.
// This allows SP to determine if volume is being used as a block
// device or mounted file system. This is OPTIONAL.
csi.v1.VolumeCapability volume_capability = 6;
}
// EncryptionKeyRotateResponse holds the information about the result of the
// EncryptionKeyRotateRequest call.
Expand Down
88 changes: 53 additions & 35 deletions lib/go/encryptionkeyrotation/encryptionkeyrotation.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 620783b

Please sign in to comment.