From 51ebef5433cb312dafcc0381424bbc97d570e2e1 Mon Sep 17 00:00:00 2001 From: Justin Ross Date: Mon, 4 Mar 2024 06:24:42 -0500 Subject: [PATCH] Expand vars in kubeconfig values --- python/skewer/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)