diff options
author | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2023-06-16 06:45:35 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-06-16 06:45:35 +0000 |
commit | 27ddbbeebee8dd18b266ade15d075d88b5c50c7e (patch) | |
tree | a17fc253039de83cc676c93607a3562f012471ac /src/onaptests/steps/cloud/check_status.py | |
parent | 055027ba9410ae5a855587939e8fb86e7a8ea6b2 (diff) | |
parent | edfdf4f8beb8de3dd763fe744655067d03923d8e (diff) |
Merge "Modify Python ONAP SDK tests to not require kubeconfig"
Diffstat (limited to 'src/onaptests/steps/cloud/check_status.py')
-rw-r--r-- | src/onaptests/steps/cloud/check_status.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/onaptests/steps/cloud/check_status.py b/src/onaptests/steps/cloud/check_status.py index a72c992..80205b5 100644 --- a/src/onaptests/steps/cloud/check_status.py +++ b/src/onaptests/steps/cloud/check_status.py @@ -120,10 +120,10 @@ class CheckNamespaceStatusStep(BaseStep): else: self.res_dir = f"{testcase.TestCase.dir_results}/kubernetes-status" - if settings.K8S_CONFIG: - config.load_kube_config(config_file=settings.K8S_CONFIG) + if settings.IN_CLUSTER: + config.load_incluster_config() else: - config.load_kube_config() + config.load_kube_config(config_file=settings.K8S_CONFIG) self.core = client.CoreV1Api() self.batch = client.BatchV1Api() |