diff --git a/docs/kubernetes.core.helm_module.rst b/docs/kubernetes.core.helm_module.rst index 4205207a03..a389408a45 100644 --- a/docs/kubernetes.core.helm_module.rst +++ b/docs/kubernetes.core.helm_module.rst @@ -413,6 +413,24 @@ Parameters
Skip custom resource definitions when installing or upgrading.
+ + +
+ timeout + +
+ string +
+
added in 2.3.0
+ + + + +
A Go duration (described here https://pkg.go.dev/time#ParseDuration) value to wait for Kubernetes commands to complete. This defaults to 5m0s.
+
similar to wait_timeout but does not required wait to be activated.
+
Mutually exclusive with wait_timeout.
+ +
@@ -429,7 +447,7 @@ Parameters -
Run helm repo update before the operation. Can be run as part of the package installation or as a separate step.
+
Run helm repo update before the operation. Can be run as part of the package installation or as a separate step (see Examples).
@@ -490,7 +508,8 @@ Parameters -
Wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful.
+
When release_state is set to present, wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful.
+
When release_state is set to absent, will wait until all the resources are deleted before returning. It will wait for as long as wait_timeout. This feature requires helm>=3.7.0. Added in version 2.3.0.
@@ -506,6 +525,7 @@ Parameters
Timeout when wait option is enabled (helm2 is a number of seconds, helm3 is a duration).
+
The use of wait_timeout to wait for kubernetes commands to complete has been deprecated and will be removed after 2022-12-01.
@@ -561,6 +581,13 @@ Examples state: absent wait: true + - name: Separately update the repository cache + kubernetes.core.helm: + name: dummy + namespace: kube-system + state: absent + update_repo_cache: true + # From git - name: Git clone stable repo on HEAD ansible.builtin.git: diff --git a/plugins/modules/helm.py b/plugins/modules/helm.py index 4265ef2cbd..098cf893ed 100644 --- a/plugins/modules/helm.py +++ b/plugins/modules/helm.py @@ -87,7 +87,7 @@ version_added: '1.1.0' update_repo_cache: description: - - Run C(helm repo update) before the operation. Can be run as part of the package installation or as a separate step. + - Run C(helm repo update) before the operation. Can be run as part of the package installation or as a separate step (see Examples). default: false type: bool @@ -205,6 +205,13 @@ state: absent wait: true +- name: Separately update the repository cache + kubernetes.core.helm: + name: dummy + namespace: kube-system + state: absent + update_repo_cache: true + # From git - name: Git clone stable repo on HEAD ansible.builtin.git: