Closed tgraskemper closed 3 years ago
The \/
is redundant, the problem is that for whatever reason Kubernetes and/or AWS no longer start the node ID from /
.
So there is a breaking change somewhere, in some version of Kubernetes API or AWS API.
Removing the first /
will break it potentially for older versions, maybe we cloud make the first /
optional.
FYI: release is in progress, but Travis CI is very slow today, stuck in a queue...
Attempting to spin this up in both a non-ASG managed cluster and one that is resulted in the same error.
Looks like this just needs a backslash in the expression with the starting slash removed? https://github.com/VirtusLab/kubedrainer/blob/9a7d7d7e92ec9bcd6c0a3db75e05d8ef2ae7a76f/cmd/kubedrainer/serve.go#L204
^(?P<Region>[a-zA-Z0-9-]+)[a-z]\/(?P<InstanceID>[a-zA-Z0-9-]+)$