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/onboard/cds.py | |
parent | 055027ba9410ae5a855587939e8fb86e7a8ea6b2 (diff) | |
parent | edfdf4f8beb8de3dd763fe744655067d03923d8e (diff) |
Merge "Modify Python ONAP SDK tests to not require kubeconfig"
Diffstat (limited to 'src/onaptests/steps/onboard/cds.py')
-rw-r--r-- | src/onaptests/steps/onboard/cds.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/onaptests/steps/onboard/cds.py b/src/onaptests/steps/onboard/cds.py index ad40fe5..5256eac 100644 --- a/src/onaptests/steps/onboard/cds.py +++ b/src/onaptests/steps/onboard/cds.py @@ -34,7 +34,10 @@ class ExposeCDSBlueprintprocessorNodePortStep(CDSBaseStep): """Initialize step.""" super().__init__(cleanup=cleanup) self.service_name: str = "cds-blueprints-processor-http" - config.load_kube_config(settings.K8S_CONFIG) + if settings.IN_CLUSTER: + config.load_incluster_config() + else: + config.load_kube_config(config_file=settings.K8S_CONFIG) self.k8s_client: client.CoreV1Api = client.CoreV1Api() @property |