-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubeconfig user exec not working #777
Comments
Hi @4durban, let's clarify this issue. What is the And finally, did you try collections versions 3.2.0 or 5.0.0? I have used So, generally I can't confirm this bug |
Hello @yurnov, You are completely right, the issue was with my config, it took some time to figure it out. Since this module is executed in localhost I did not realized that I had the "become=True" configured in the ansible.cfg and when I launched the tasks, they were executed as root, and root was not able to find the binary need for the exec authentication plugin (it was available on my user and its PATH variable, not root). I thought that the issue was with the implementation, because the error message was not really clear to me but I achieved to solve it. So, I think that I will close the issue since the issue was on my side and has nothing to do with the code. If you have a place for Troubleshooting or something like that and want to detail this I think that other people may find it useful. Thank you for your time and response |
SUMMARY
I have two different kubeconfigs, one using a token and one using a EXEC plugin for the authentication as specified in kubeconfig https://kubernetes.io/docs/reference/config-api/kubeconfig.v1/#ExecConfig.
With this first one the collection works fine:
But with this one it does not:
The thing is that both of them work fine with kubectl (the native binary provided by kubernetes) so I am guessing that the issue is with the collection, or the python module under the hood. But from my understanding the python module indeed supports this, so I guess there is some kind of missing functionality/bug in this?
ISSUE TYPE
COMPONENT NAME
I guess the issue is with the way you parse/create the request using the collection into the python plugin.
ANSIBLE VERSION
COLLECTION VERSION
STEPS TO REPRODUCE
The steps to reproduce is trying to execute any task from the collection but using a kubeconfig that uses the exec plugin function from the kubeconfig
EXPECTED RESULTS
I expected the collection to behave the same way with token auth or with exec auth, but it does not.
ACTUAL RESULTS
The issue is that when I try to execute a task using the exec auth in the user it does not work, an error pops up, and I guess that it is because it is not parsing the exec section of the kubeconfig
The text was updated successfully, but these errors were encountered: