Closed vivian-rook closed 4 months ago
I'm not able to reproduce this problem. What version of the collection are you using? You provided the version for community.general, not kubernetes.core.
How do I get the version of kubernetes.core?
$ ansible-galaxy collection list kubernetes.core
$ ansible-galaxy collection list kubernetes.core
# /home/rook/paws/.venv/deploy/lib/python3.11/site-packages/ansible_collections
Collection Version
--------------- -------
kubernetes.core 2.4.2
This was fixed in version 3.0.1. You can also use force: true
in your second deploy task, but I would just recommend upgrading to the latest version (4.0.0). There have been a number of bugfixes to the helm module since 2.4.2.
SUMMARY
Addition of set_values to helm not detected
ISSUE TYPE
COMPONENT NAME
kubernetes.core.helm
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Debian 12
STEPS TO REPRODUCE
Deploy ingress-nginx first without set_values:
Deploy again with set_values:
EXPECTED RESULTS
set values are deployed. NodePort used, port 30001 set, etc.
ACTUAL RESULTS
set values are not deployed. ingress-nginx remains on default with load balancer rather than NodePort Seen with
kubectl get all -n ingress-nginx
Of note. This does seem to work if the set_values are set and deploy to a newly deploy k8s cluster. But does not seem to work as an update to an existing deployment. Also the set_values can be removed from an existing deployment, but then will not be added back if added back to the playbook.