Skip to content

Commit

Permalink
handle if aps-template-version is not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyjux committed Oct 11, 2024
1 parent f4ac303 commit 5071faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion microservices/kubeApi/routers/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ async def verify_and_create_routes(namespace: str, request: Request):
"selectTag": route["metadata"]["labels"]["aps-select-tag"],
"host": route["spec"]["host"],
"dataPlane": route["spec"]["to"]["name"],
"sessionCookieEnabled": route["metadata"]["labels"]["aps-template-version"] == "v1"
"sessionCookieEnabled": True if route["metadata"]["labels"].get("aps-template-version") == "v1" else False
}
)

Expand Down

0 comments on commit 5071faa

Please sign in to comment.