mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-06 13:02:37 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user