-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Adding label in snapshot #29
Comments
Manual labels, or copying labels from the disk is a neat idea, though I do wonder if we should do it, because we are potentially extending the interface that backends have to implement. What's the use case specifically? I am not sure what you mean by JSON templating either. Can you explain more? |
+1 for that. My use case is spending management. We label all our GCP resources by "service" label to help breaking down the spending later on. I would account snapshots costs as part of the respective disk/resource/service costs. Therefore I would like to be able to specify either:
We don't need anything fancy like templating. KISS will work great. |
You can set custom labels with environment variables: https://github.com/miracle2k/k8s-snapshots/blob/d4af616c1641465b0367054166cc2c5a9de0326f/k8s_snapshots/config.py pass |
hi, have this been implemented? or work in progress? |
i don't know why @sim1 's comment is downvoted, it actually works and can serve as a temporary workaround if you need just one label. |
Can we add static label or copy label from disk to snapshot?
a good idea can to to permit json templating with PV/PVC description.
The text was updated successfully, but these errors were encountered: