Skip to content

Commit

Permalink
Expand vars in kubeconfig values
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorj committed Mar 4, 2024
1 parent 49e1ed6 commit 51ebef5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/skewer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,10 @@ def __enter__(self):
kube_sites = [x for _, x in model.sites if x.platform == "kubernetes"]

for site in kube_sites:
kubeconfig = site.env["KUBECONFIG"].replace("~", self.work_dir)
kubeconfig = site.env["KUBECONFIG"]
kubeconfig = kubeconfig.replace("~", self.work_dir)
kubeconfig = expand(kubeconfig)

site.env["KUBECONFIG"] = kubeconfig

self.kubeconfigs.append(kubeconfig)
Expand Down

0 comments on commit 51ebef5

Please sign in to comment.