Skip to content

Commit

Permalink
Merge pull request #142 from francescotimperi/extra-www
Browse files Browse the repository at this point in the history
fix: /api/my endpoint was not created for www based hostname
  • Loading branch information
francescotimperi committed Feb 15, 2024
2 parents 25999a9 + c8dd833 commit a4f1c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nuvolaris/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def deploy_api_routes(apihost,namespace,should_create_www=False):
os.remove(path_to_template_yaml)

if should_create_www:
www_my = RouteData(apihost)
www_my = RouteData(apihost_util.append_prefix_to_url(apihost,"www"))
www_my.with_route_name(api_route_name(namespace,"apihost-www-my"))
www_my.with_service_name("controller-ip")
www_my.with_service_kind("Service")
Expand Down Expand Up @@ -172,7 +172,7 @@ def deploy_api_ingresses(apihost, namespace,should_create_www=False):
os.remove(path_to_template_yaml)

if should_create_www:
www_my = IngressData(apihost)
www_my = IngressData(apihost_util.append_prefix_to_url(apihost,"www"))
www_my.with_ingress_name(api_ingress_name(namespace,"apihost-www-my"))
www_my.with_secret_name(api_secret_name(namespace)+"-www")
www_my.with_context_path("/api/my")
Expand Down

0 comments on commit a4f1c50

Please sign in to comment.