-
Notifications
You must be signed in to change notification settings - Fork 618
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
Add CSI NodeStage #3918
Add CSI NodeStage #3918
Conversation
fcecb22
to
40e2245
Compare
40e2245
to
4d083bd
Compare
} | ||
} | ||
|
||
func (d *nodeService) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error) { | ||
klog.V(4).InfoS("NodeGetVolumeStats: called", "args", *req) | ||
klog.InfoS("NodeGetVolumeStats: called") |
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.
Are we getting rid of the args and req?
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.
(will add in a future pr with the updated build process)
} | ||
|
||
// IsBlock checks if the given path is a block device | ||
func (d *nodeService) IsBlockDevice(fullPath string) (bool, error) { |
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.
nit: same util method here - https://github.com/aws/amazon-ecs-agent/blob/master/ecs-agent/daemonimages/csidriver/util/utils_linux.go#L22
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.
(will add in a future pr with the updated build process)
Summary
This adds NodeStage to the internal/minimal EBS CSI Driver. This code comes directly from https://github.com/kubernetes-sigs/aws-ebs-csi-driver and is used to create a minimal Node-specific driver.
Implementation details
The driver is updated to use the public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-csi-ebs base image which contains all requisite mount utilities in the path while still keeping the overall driver to ~50mb in size. The NodeStage implementation adds only the files and dependencies which are directly tied to the EBS volume Mount/format/fs resize.
Testing
Manual test process:
New tests cover the changes: no
Description for the changelog
Update Minimal CSI Driver with NodeStage method.
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.