Skip to content

Commit

Permalink
Merge branch 'ansible-collections:main' into support_of_local_env_for…
Browse files Browse the repository at this point in the history
…_kubectl
  • Loading branch information
yurnov authored May 2, 2024
2 parents 92fb3fb + 9f7c865 commit 28c15ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/654-helm-expand-user.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- helm - expand kubeconfig path with user's home directory for consistency with k8s
2 changes: 1 addition & 1 deletion plugins/module_utils/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def _prepare_helm_environment(self):
kubeconfig = self.params.get("kubeconfig")
if kubeconfig:
if isinstance(kubeconfig, string_types):
with open(kubeconfig) as fd:
with open(os.path.expanduser(kubeconfig)) as fd:
kubeconfig_content = yaml.safe_load(fd)
elif isinstance(kubeconfig, dict):
kubeconfig_content = kubeconfig
Expand Down

0 comments on commit 28c15ab

Please sign in to comment.