Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

List k8s kinds #23

Open
rahulinux opened this issue Nov 23, 2017 · 1 comment
Open

List k8s kinds #23

rahulinux opened this issue Nov 23, 2017 · 1 comment

Comments

@rahulinux
Copy link

I'm trying to list deployments using:

---
- hosts: localhost
  roles:
     - role: ansible-kubernetes-modules
       install_python_requirements: no

  tasks:
     - k8s_extensions_v1beta1_deployment_list:
         state: present

but it throws : Failed to retrieve requested object: Error: method list_deployment not found for model deployment_list. Did you forget to include the namespace?

and after adding namespace Unsupported parameters for (k8s_apps_v1beta1_deployment_list) module: namespace Supported parameters include: api_key,cert_file,context,debug,dry_run,force,host,key_file,kubeconfig,password,resource_definition,src,ssl_ca_cert,state,username,verify_ssl

@fabianvf
Copy link
Collaborator

fabianvf commented Nov 28, 2017

I think this PR should at least affect this issue, though I'm not sure if it'll fix it or not.

openshift/openshift-restclient-python#122

It's not on pypi yet so if you want to try it out you'll have to pip install from source

pip install https://github.com/openshift/openshift-restclient-python/archive/master.zip

should work

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants