The collection includes a variety of Ansible content to help automate the management of applications in Kubernetes and OpenShift clusters, as well as the provisioning and maintenance of clusters themselves.
Other
214
stars
133
forks
source link
Dynamic discovery cannot handle APIs of format a/b/c #685
The get_resources_for_api_version() method of module_utils.client.discovery.Discoverer expects sub-resource names to be of the format a/b, which breaks with newly added APIs in KubeVirt that are of the format a/b/c.
SUMMARY
The
get_resources_for_api_version()
method ofmodule_utils.client.discovery.Discoverer
expects sub-resource names to be of the format a/b, which breaks with newly added APIs in KubeVirt that are of the format a/b/c.See:
https://github.com/kubernetes-client/python/issues/2091 https://github.com/kubernetes-client/python/pull/2095
ISSUE TYPE
COMPONENT NAME
module_utils.client.discovery.Discoverer
ANSIBLE VERSION
COLLECTION VERSION
STEPS TO REPRODUCE
With
https://github.com/kubevirt/kubevirt.core
try to use the inventory plugin against a cluster running KubeVirt >=1.1.0.EXPECTED RESULTS
Inventory should be able to list VMs on cluster.
ACTUAL RESULTS
Inventory fails because it fails to discover APIs on the cluster.