mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-08 05:52:37 +00:00
consider support helm < 3.0.0
This commit is contained in:
@@ -151,6 +151,9 @@ class AnsibleHelmModule(object):
|
|||||||
env_update["KUBECONFIG"] = kubeconfig_path
|
env_update["KUBECONFIG"] = kubeconfig_path
|
||||||
self.add_cleanup_file(kubeconfig_path)
|
self.add_cleanup_file(kubeconfig_path)
|
||||||
|
|
||||||
|
if LooseVersion(self.get_helm_version()) < LooseVersion("3.0.0"):
|
||||||
|
env_update["HELM_EXPERIMENTAL_OCI"] = "1"
|
||||||
|
|
||||||
return env_update
|
return env_update
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
@@ -223,10 +223,10 @@ def main():
|
|||||||
else:
|
else:
|
||||||
module.fail_json(
|
module.fail_json(
|
||||||
msg="Failure when executing Helm command. Exited {0}.\nstdout: {1}\nstderr: {2}".format(
|
msg="Failure when executing Helm command. Exited {0}.\nstdout: {1}\nstderr: {2}".format(
|
||||||
rc, out, err
|
rc, out, err
|
||||||
),
|
),
|
||||||
command=helm_cmd,
|
command=helm_cmd,
|
||||||
)
|
)
|
||||||
|
|
||||||
module.exit_json(changed=changed, stdout=out, stderr=err, command=helm_cmd)
|
module.exit_json(changed=changed, stdout=out, stderr=err, command=helm_cmd)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user