generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 144
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
in-memory kubeconfig rather than file #139
Labels
Comments
@hassenius thanks for taking the time to report this new feature request. |
e.g.
|
ansible-zuul bot
pushed a commit
that referenced
this issue
Aug 30, 2021
add support for in-memory kubeconfig SUMMARY k8s module support now authentication with kubeconfig parameter as file and dict. Closes #139 ISSUE TYPE Feature Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Mike Graves <[email protected]> Reviewed-by: None <None>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SUMMARY
Have a method to use non-file-based kubeconfig
ISSUE TYPE
Feature or documentation improvement if already possible
COMPONENT NAME
kubernetes.core.k8s
ADDITIONAL INFORMATION
In our case we store the relevant kubernetes auth information in an external secret store, so we can easily retrieve the content of a kubeconfig file which has all the relevant information to connect to the cluster.
It appears that the kubernetes.core.k8s component expects to find kubeconfig as a file: https://docs.ansible.com/ansible/latest/collections/kubernetes/core/k8s_module.html#parameter-kubeconfig
with no way to feed ca/client_cert/key in as direct values.
This means for us we'd need to save the relevant information to temporary files after retrieving them from external secret store.
The text was updated successfully, but these errors were encountered: