diff --git a/microservices/gatewayApi/v1/routes/gateway.py b/microservices/gatewayApi/v1/routes/gateway.py index cabaa90..9681b5c 100644 --- a/microservices/gatewayApi/v1/routes/gateway.py +++ b/microservices/gatewayApi/v1/routes/gateway.py @@ -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 @@ -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"]