You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kube-rs client fails to run custom authentication plugin. The plugin reads KUBERNETES_EXEC_INFO env var, which is a JSON-serialized object with two fields: kind and apiVersion. The plugin fails, because kube-rs client always sets kind to null when executing the command
I'm a dumb potato, looks like field kind describes the type of the object itself. Relevant pieces of code from client-go: ExecCredentialdefinition, how it's created and this test
Current and expected behavior
kube-rs
client fails to run custom authentication plugin. The plugin readsKUBERNETES_EXEC_INFO
env var, which is a JSON-serialized object with two fields:kind
andapiVersion
. The plugin fails, becausekube-rs
client always setskind
tonull
when executing the commandkube/kube-client/src/client/auth/mod.rs
Line 555 in c3fbe25
kubectl
works fine though.Our issue: metalbear-co/mirrord#2023
Possible solution
Not sure yet, probably see how it's handled in
client-go
and do the same here.Additional context
Environment
I'll update when I get it
Configuration and features
Used
kube
is a fork of0.86.0
with added socks5 support, changes do not affect this bug.Affected crates
kube-client
Would you like to work on fixing this bug?
yes
The text was updated successfully, but these errors were encountered: