Helm uninstall now support wait parameter (#235)

Helm uninstall now support wait parameter

SUMMARY

closes #33

ISSUE TYPE


Feature Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION



- helm:
    chart_name: test
    state: absent
    wait: yes

Reviewed-by: Abhijeet Kasurde <None>
Reviewed-by: Mike Graves <mgraves@redhat.com>
Reviewed-by: None <None>
Reviewed-by: None <None>
This commit is contained in:
abikouo
2021-09-29 18:21:37 +02:00
committed by GitHub
parent ab0e38753b
commit 8e46f92703
10 changed files with 232 additions and 8 deletions

View File

@@ -11,6 +11,7 @@ from contextlib import contextmanager
import os
import tempfile
import traceback
import re
from ansible.module_utils.basic import missing_required_lib
@@ -158,3 +159,14 @@ def parse_helm_plugin_list(module, output=None):
ret.append((name, version, description))
return ret
def get_helm_version(module, helm_bin):
helm_version_command = helm_bin + " version"
rc, out, err = module.run_command(helm_version_command)
if rc == 0:
m = re.match(r'version.BuildInfo{Version:"v([0-9\.]*)",', out)
if m:
return m.group(1)
return None