nodePoolName pattern should be customizable
The pattern for nodePoolName is currently hardcoded which prevents us from using this tool. Our ASGs doesn't have the "eks-" prefix in their names and renaming them would be a major pain in the a**.
I see. Can you share what pattern you would like for your specific case? I'm trying to understand if the best way to address this would be to allow configuring the whole pattern, or whether the pattern should be amended (presumably with the UUID pattern)?
Thanks for picking up on this.
E.g. we have an ASG with the name k8s_stage2-bd-scanner-12022110415025032090000000a and we got the runtime error:
"error":"could not find status for node pool: eks-k8s_stage2-bd-scanner-12022110415025032090000000a-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
IMO the whole pattern should be configurable.
I've created a quick PR according to the feature description provided by @tothadi.
https://github.com/XenitAB/node-ttl/pull/76
This should make the use case more clear.
Sorry for being late in the game. I am trying to figure out if I have done something wrong with the AWS specific handling that we should modify instead.
@TheDoctor028 your PR is it adding custom labeling for AWS specifically or some other cloud provider?
If we can the best option would be to just add specific support for each cloud provider.