To clarify, the current implementation assumes that the context name will always match the cluster name. The correct method is to read the context.cluster property of the context when searching for cluster.
I'll have a pull request shortly. I just started trying this library and this was the first problem I encountered. I like the low-level simplicity of this so far.
You're currently using:
Should be:
To clarify, the current implementation assumes that the context name will always match the cluster name. The correct method is to read the
context.cluster
property of thecontext
when searching forcluster
.