ansible-collections / community.kubernetes

Kubernetes Collection for Ansible
https://galaxy.ansible.com/community/kubernetes
GNU General Public License v3.0
265 stars 106 forks source link

Failure executing helm command "unknown flag --filter" #348

Closed plicon closed 3 years ago

plicon commented 3 years ago
SUMMARY

When running trying to install a helm chart using the community.kubernetes.helm module the ansible breaks with:

fatal: [*************]: FAILED! => {"changed": false, "command": "/usr/local/bin/helm --namespace=default list --output=yaml --filter *******", "msg": "Failure when executing Helm command. Exited 1.\nstdout: \nstderr: Error: unknown flag: --filter\n", "stderr": "Error: unknown flag: --filter\n", "stderr_lines": ["Error: unknown flag: --filter"], "stdout": "", "stdout_lines": []}
ISSUE TYPE
COMPONENT NAME

helm version:

Client: &version.Version{SemVer:"v2.16.12", GitCommit:"47f0b88409e71fd9ca272abc7cd762a56a1c613e", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.12", GitCommit:"47f0b88409e71fd9ca272abc7cd762a56a1c613e", GitTreeState:"clean"}
ANSIBLE VERSION
ansible 2.10.3
  config file = /home/admin/development/ansible/ansible.cfg
  configured module search path = ['/home/admin/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/admin/development/venv/lib/python3.8/site-packages/ansible
  executable location = /home/myuser/development/venv/bin/ansible
  python version = 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]
tima commented 3 years ago

@plicon The helm module in this collection is for Helm3 only. Looks like you're using Helm 2.16.12.

plicon commented 3 years ago

right I'm using helm2 .. didn't see in the requirements an exclusion of helm2 .. I'll give community.general.helm a try and see if that one get's the job done. Thanks!