Skip to content

Commit 620783b

Browse files
encryptionkeyrotation: Add volume capabilities
This patch adds the option to pass the CSI volume capabilities with the EncryptionKeyRotateRequest. Signed-off-by: Niraj Yadav <niryadav@redhat.com>
1 parent 12dd215 commit 620783b

File tree

3 files changed

+63
-35
lines changed

3 files changed

+63
-35
lines changed

encryptionkeyrotation/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ message EncryptionKeyRotateRequest {
8282
8383
// Secrets required by the plugin to complete the request.
8484
map<string, string> secrets = 5 [(csi.v1.csi_secret) = true];
85+
86+
// Volume capability describing how the CO intends to use this volume.
87+
// This allows SP to determine if volume is being used as a block
88+
// device or mounted file system. This is OPTIONAL.
89+
csi.v1.VolumeCapability volume_capability = 6;
8590
}
8691
```
8792

encryptionkeyrotation/encryptionkeyrotation.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ message EncryptionKeyRotateRequest {
3737

3838
// Secrets required by the plugin to complete the request.
3939
map<string, string> secrets = 5 [(csi.v1.csi_secret) = true];
40+
41+
// Volume capability describing how the CO intends to use this volume.
42+
// This allows SP to determine if volume is being used as a block
43+
// device or mounted file system. This is OPTIONAL.
44+
csi.v1.VolumeCapability volume_capability = 6;
4045
}
4146
// EncryptionKeyRotateResponse holds the information about the result of the
4247
// EncryptionKeyRotateRequest call.

lib/go/encryptionkeyrotation/encryptionkeyrotation.pb.go

Lines changed: 53 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)