Skip to content

Commit

Permalink
fix for v1 of gateway api
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder committed May 25, 2024
1 parent cfd44a2 commit f3b18b5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions microservices/gatewayApi/v1/routes/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from clients.portal import record_gateway_event
from clients.kong import get_routes
from clients.ocp_networksecuritypolicy import get_ocp_service_namespaces, check_nsp, apply_nsp, delete_nsp
from clients.ocp_routes import get_host_list, prepare_apply_routes, prepare_delete_routes, apply_routes, delete_routes
from clients.ocp_routes import get_host_list, get_route_overrides
from clients.ocp_gateway_secret import prep_submitted_config, prep_and_apply_secret, write_submitted_config

from utils.validators import host_valid
Expand Down Expand Up @@ -330,7 +330,10 @@ def write_config(namespace: str) -> object:
route_payload = {
"hosts": get_host_list(tempFolder),
"select_tag": selectTag,
"ns_attributes": ns_attributes.getAttrs()
"ns_attributes": ns_attributes.getAttrs(),
"overrides": {
"aps.route.session.cookie.enabled": get_route_overrides(tempFolder, "aps.route.session.cookie.enabled")
}
}
dp = get_data_plane(ns_attributes)
rqst_url = app.config['data_planes'][dp]["kube-api"]
Expand Down

0 comments on commit f3b18b5

Please sign in to comment.