diff options
author | pawel.denst <pawel.denst@external.t-mobile.pl> | 2023-06-05 08:00:55 +0000 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2023-06-15 18:42:22 +0000 |
commit | edfdf4f8beb8de3dd763fe744655067d03923d8e (patch) | |
tree | fbdb3483ccfa38bad0527517d8cef799d53bfd7b /src/onaptests/steps/onboard | |
parent | c458ace517bb640de7ec05cd2a26e33cfcac21e2 (diff) |
Modify Python ONAP SDK tests to not require kubeconfig
Modify Python ONAP SDK tests to not require kubeconfig
Issue-ID: INT-2247
Signed-off-by: pawel.denst <pawel.denst@external.t-mobile.pl>
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl>
Change-Id: I0d61250a2373d8549696cedaa2c0c5fb721d0e3b
Diffstat (limited to 'src/onaptests/steps/onboard')
-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 |