Improve-CPS-sanity-test
Issue-ID: INT-2263
Signed-off-by: pawel.denst <pawel.denst@external.t-mobile.pl>
Change-Id: Iab13759245c2f355d68bbf55d1a03087cd6c3d6d
return "Establish connection with Postgress and execute the query"
def get_database_credentials(self):
return "Establish connection with Postgress and execute the query"
def get_database_credentials(self):
- config.load_kube_config()
+ if settings.IN_CLUSTER:
+ config.load_incluster_config()
+ else:
+ config.load_kube_config(config_file=settings.K8S_CONFIG)
api_instance = client.CoreV1Api()
try:
secret = api_instance.read_namespaced_secret(
api_instance = client.CoreV1Api()
try:
secret = api_instance.read_namespaced_secret(