diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2022-10-21 15:52:10 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2022-10-21 15:53:28 +0200 |
commit | 2bbff5b93cbce68a392cab5f5a0d35ea0e32477b (patch) | |
tree | 75102ace92a8b66dbf6c2ed650eb2fc5d565dac4 | |
parent | 0e7dd47d0e551b8bde22d805653066ade0ea74c3 (diff) |
Stop hardcoding KUBECONFIG
Change-Id: I6ac15eb3686d6502dfa1bbe179622693b1961f45
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit abcc9aa9e57a8af8e4479f897a77c22b16324f6a)
-rw-r--r-- | functest_kubernetes/k8stest.py | 2 | ||||
-rw-r--r-- | functest_kubernetes/netperf/netperf.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/functest_kubernetes/k8stest.py b/functest_kubernetes/k8stest.py index b4843e73..eced6f65 100644 --- a/functest_kubernetes/k8stest.py +++ b/functest_kubernetes/k8stest.py @@ -30,7 +30,7 @@ class E2ETesting(testcase.TestCase): __logger = logging.getLogger(__name__) - config = '/root/.kube/config' + config = '~/.kube/config' gcr_repo = os.getenv("MIRROR_REPO", "gcr.io") k8s_gcr_repo = os.getenv("MIRROR_REPO", "k8s.gcr.io") diff --git a/functest_kubernetes/netperf/netperf.py b/functest_kubernetes/netperf/netperf.py index 2bd1e1be..31788176 100644 --- a/functest_kubernetes/netperf/netperf.py +++ b/functest_kubernetes/netperf/netperf.py @@ -44,7 +44,7 @@ class Netperf(testcase.TestCase): if not os.path.exists(self.res_dir): os.makedirs(self.res_dir) cmd = ['launch', '-iterations', '1', '-kubeConfig', - '/root/.kube/config'] + '~/.kube/config'] output = subprocess.check_output(cmd, stderr=subprocess.STDOUT) self.__logger.info("%s\n%s", " ".join(cmd), output.decode("utf-8")) lfiles = glob.glob(os.path.join( |