Skip to content
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 interface for csi client #3899

Merged
merged 3 commits into from
Sep 13, 2023
Merged

Add interface for csi client #3899

merged 3 commits into from
Sep 13, 2023

Conversation

xxx0624
Copy link
Contributor

@xxx0624 xxx0624 commented Sep 12, 2023

Summary

This PR is to add an interface for the csi client which can be used by Agent to communicate with the CSI driver daemon.

Implementation details

  1. the new interface are from the existing implementation of the method GetVolumeMetrics
  2. change NewCSIClient to return a pointer.
  3. add a new dummy csi client for testing only.

Testing

New tests cover the changes: no

Description for the changelog

Add interface for csi client.

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@xxx0624 xxx0624 requested a review from a team as a code owner September 12, 2023 17:56
ecs-agent/csiclient/csi_client.go Outdated Show resolved Hide resolved
ecs-agent/csiclient/dummy_csiclient.go Outdated Show resolved Hide resolved
@xxx0624 xxx0624 merged commit 21bd233 into aws:dev Sep 13, 2023
36 checks passed
xxx0624 added a commit to xxx0624/amazon-ecs-agent that referenced this pull request Sep 15, 2023
* Add interface for csi client

* Add comments

* Add comments
xxx0624 added a commit to xxx0624/amazon-ecs-agent that referenced this pull request Sep 20, 2023
* Add interface for csi client

* Add comments

* Add comments
xxx0624 added a commit to xxx0624/amazon-ecs-agent that referenced this pull request Sep 20, 2023
* Add interface for csi client

* Add comments

* Add comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants