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

Construct resizer lease name from driver name #36

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

chu-yik
Copy link
Contributor

@chu-yik chu-yik commented Oct 31, 2024

Description of changes:

Instead of hardcoding the external-resizer lease name as external-resizer-ebs-csi-aws-com, construct it from the driverName following the logic in external-resizer.

I added import of github.com/kubernetes-csi/external-resizer/pkg/util to use the SanitizeName to keep the logic consistent. Happy to just copy the sanitize logic and drop the dependency if the additional dependency is not ideal.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@ConnorJC3 ConnorJC3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@torredil torredil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@torredil torredil merged commit b7afd8f into awslabs:main Nov 1, 2024
1 check passed
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.

3 participants