Closed arcalys closed 4 years ago
@arcalys Thanks for reporting this issue. I will try to reproduce this at my end.
resolved_by_pr #281
@arcalys Could you please check if #281 resolves the issue for you and let me know? Thanks.
@Akasurde Just tested it and I can confirm this resolves the issue. Thanks for the fast response !
Cheers
SUMMARY
I am trying to install a few Helm releases into a local and staging kubernetes clusters through Ansible using the Helm module. However, when running check mode, it always fails if the release does not exist.
It seems to be related to that change: https://github.com/ansible-collections/community.kubernetes/commit/7946b398a7fd42bd8fa8cfb02ccbf03b2d135a60#diff-25ae73979f193a414d8f45fc01c829eb4eb80cf46777c882108ceb7c20f2dc0d
It does not check, if in check_mode, if release_status is null/None.
ISSUE TYPE
COMPONENT NAME
community/kubernetes/plugins/modules/helm.py
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 20.04
STEPS TO REPRODUCE
Hosts file:
Vars:
Playbook:
ansible.cfg:
EXPECTED RESULTS
I would expect the check mode to work properly and display a changed status:
ACTUAL RESULTS