-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] Enable support for encrypted volumes for CSI driver #299
Conversation
…ncryption` status
…hile creating the controller server
… create volume request is made
- to check if region allows encryption - prepare the volume creation request with updated params - added helper function `isEncryptionSupported` to dynamically check for regions - updated attach volume operation logic to check if the created volume and the linode it's being attached to is in the same region(only for encrypted volumes this is enforced)
- removed new storage class and edited pre-existing ones
- updated functions to use the parameter specified in the template - updated tests to account for the new changes in the function calls
- updated template files to conditionally store parameters in the map
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #299 +/- ##
==========================================
+ Coverage 73.68% 74.79% +1.10%
==========================================
Files 22 22
Lines 2356 2396 +40
==========================================
+ Hits 1736 1792 +56
+ Misses 522 499 -23
- Partials 98 105 +7 ☔ View full report in Codecov by Sentry. |
helm-chart/csi-driver/templates/linode-block-storage-retain.yaml
Outdated
Show resolved
Hide resolved
…eys in the map inside the function - set volumeContext to include encryption
- Moved checks for volume encryption into `prepareVolumeParams` - removed redudant volume and linode region checks - updated test cases for the changes that were made
helm-chart/csi-driver/templates/linode-block-storage-retain.yaml
Outdated
Show resolved
Hide resolved
- added back volume name and size to returns - fixed comments
- added steps to check if encryption is supported in that region
internal/driver/examples/kubernetes/csi-linode-blockstorage-encrypted.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this! Looks good to me
General:
This PR focuses on enabling support for encrypted volumes for the CSI driver.
It addresses the following tasks:
Pull Request Guidelines: