Skip to content

Commit

Permalink
fix for v1
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder committed May 25, 2024
1 parent f3b18b5 commit b69acd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion microservices/gatewayApi/v1/routes/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
1 change: 0 additions & 1 deletion microservices/gatewayApi/v2/routes/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b69acd1

Please sign in to comment.