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
K8s inventory plugin #34920
K8s inventory plugin #34920
Conversation
7c881c6
to
a660425
Compare
a660425
to
5bb880e
Compare
@maxamillion @flaper87 @samdoran @jcpowermac @fabianvf @rcarrillocruz I think this is in a good place. Would appreciate any feedback. I'm testing with the following
I'm just using the default So my simple
And for
Here's a test playbook. You'll need to changes
Run the above using either plugin. So for
|
5bb880e
to
bf0a479
Compare
bf0a479
to
96915d1
Compare
It adds labels to all the returned objects, to enable selecting by label. But just realized, I'm adding labels to the object as |
96915d1
to
19ad6fd
Compare
Pushed a change. Now all structured data is handled as such, and not as strings. For example, with labels, you can now do the following:
|
19ad6fd
to
a8af97c
Compare
I think this is great 👍 |
LGTM 🥞 |
/lgtm |
shipit |
SUMMARY
Adding
k8s
andopenshift
inventory pluginISSUE TYPE
COMPONENT NAME
lib/ansible/plugins/inventory/k8s.py
lib/ansible/plugins/inventory/openshift.py
ANSIBLE VERSION