-
Notifications
You must be signed in to change notification settings - Fork 813
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 the ability to provide static EBS volume tags #333
Comments
@leakingtapan let us know how to proceed. Happy to submit PR for the feature. |
Since I see there are mutiple ways to implement this, could you create an issue with a high level design to begin with. Would happy to review it. |
@leakingtapan The proposal is to add a new cli command option When doing dynamic provisioning (i.e., in |
@jieyu Several questions for this approach:
Back to your use case, do you only care about tagging volume (or snapshot) with cluster ID? Or you want volumes(or snapshots) be tagged with arbitrary static key/value pairs that are passed in through the |
@leakingtapan thanks for the feedback! those are good questions. Will definitely address those and add validation.
We care about more than just cluster ID. For instance, we deploy some kind of cloud cleaner to periodically cleanup resources that are expired unless you add a special tag
Good question. Yes, allowing adding tags to snapshot will be nice! We could add another flag |
@leakingtapan does the above sound good to you? If yes, I can start working on it. |
Sounds good to me. Will be happy to review the code. |
BTW, are you looking for using this feature in the context of k8s or other CO? |
@leakingtapan currently, only in context of k8s |
@leakingtapan thanks for the pointer and the design! I looked at the design. Unfortunately it does not solve our use case. We have two personas:
The proposal in #351 requires developers to annotate PVC. This is undesirable in our use case because they might just forgot to annotate their PVCs. Since cluster admin manages the lifecycle of the cluster, they are responsible for cleaning up all AWS resources associated with the cluster. And they cannot rely on developers to be cooperative. We must provide a mechanism for cluster admin to properly cleanup EBS volumes irrespective of what the developers do. |
makes sense. Thx for clarification ! |
/assign @jieyu |
Where to add the cli arg: --extra-volume-tags flag provided but not defined: -extra-volume-tags |
What’s the driver version you are using? |
aws-ebs-csi-driver:v0.4.0 |
This feature is only available in master branch or latest image tag. We have yet to cut a release |
I don't see that feature even with latest tag(i took it from dev), with alpha its completely different: |
@infa-ssaurabh The feature is merged in master branch, if you build the controller from master, you should be able to see those flags. We've tested internally and worked. @leakingtapan when we can expect the next release? |
Is your feature request related to a problem? Please describe.
Describe the solution you'd like in detail
Add a config option (eg. cmd flag) to controller service, so that it'll always attach some tags to all the dynamically provisioned EBS volumes. The default can be empty so that it matches the current behavior.
Describe alternatives you've considered
We can either implement this as a standalone feature or let this feature depend on #180
/cc @jieyu
The text was updated successfully, but these errors were encountered: