From b69acd1308da3dec460267ed617a726cdca11389 Mon Sep 17 00:00:00 2001 From: ikethecoder Date: Fri, 24 May 2024 18:42:31 -0700 Subject: [PATCH] fix for v1 --- microservices/gatewayApi/v1/routes/gateway.py | 2 +- microservices/gatewayApi/v2/routes/gateway.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/microservices/gatewayApi/v1/routes/gateway.py b/microservices/gatewayApi/v1/routes/gateway.py index 9681b5c..0751e9a 100644 --- a/microservices/gatewayApi/v1/routes/gateway.py +++ b/microservices/gatewayApi/v1/routes/gateway.py @@ -336,8 +336,8 @@ def write_config(namespace: str) -> object: } } dp = get_data_plane(ns_attributes) + log.debug("[%s] - Initiating request to kube API %s" % (dp, route_payload)) rqst_url = app.config['data_planes'][dp]["kube-api"] - log.debug("[%s] - Initiating request to kube API" % (dp)) res = session.put(rqst_url + "/namespaces/%s/routes" % namespace, json=route_payload, auth=( app.config['kubeApiCreds']['kubeApiUser'], app.config['kubeApiCreds']['kubeApiPass'])) log.debug("[%s] - The kube API responded with %s" % (dp, res.status_code)) diff --git a/microservices/gatewayApi/v2/routes/gateway.py b/microservices/gatewayApi/v2/routes/gateway.py index af41e28..7401867 100644 --- a/microservices/gatewayApi/v2/routes/gateway.py +++ b/microservices/gatewayApi/v2/routes/gateway.py @@ -344,7 +344,6 @@ def write_config(namespace: str) -> object: } log.debug("[%s] - Initiating request to kube API %s" % (dp, route_payload)) rqst_url = app.config['data_planes'][dp]["kube-api"] - log.debug("[%s] - Initiating request to kube API" % (dp)) res = session.put(rqst_url + "/namespaces/%s/routes" % namespace, json=route_payload, auth=( app.config['kubeApiCreds']['kubeApiUser'], app.config['kubeApiCreds']['kubeApiPass'])) log.debug("[%s] - The kube API responded with %s" % (dp, res.status_code))