diff --git a/python/skewer/main.py b/python/skewer/main.py index 42106c2..05f1f99 100644 --- a/python/skewer/main.py +++ b/python/skewer/main.py @@ -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)