provide rustls implementation to sign request to gke #123
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
related #120
I refactor a bit the code:
native-tls
andrustls-tls
for my quick test native-tls and rustls-tls behave the same, but
https://35.187.173.xxx/
) and that is not supported by rustls see Missing support for ipv4/ipv6 subjects · Issue #56 · ctz/hyper-rustls (I workaround by modifingetc/hosts
and.kube/config
to use the urlhttps://kubernetes.default
.So I guess that the lib is not usable as is with gke
FYI, currently in my kubectl plugin, I don't let kube-rs manage token (and refresh) because
.kube/config
after refresh (and that cause trouble with kubectl (and otherplugin))
So I call
kubectl cluster-info
before.Sorry for long text