Skip to content

Commit

Permalink
[Fix]: User-defined ingress causes job status error (apache#3792) (ap…
Browse files Browse the repository at this point in the history
…ache#4047)

* [Fix]: User-defined ingress causes job status error (apache#3792)
* [Fix]: User-defined ingress causes job status error

* Update IngressStrategyV1.scala

---------

Co-authored-by: unknown <[email protected]>
Co-authored-by: benjobs <[email protected]>
  • Loading branch information
3 people authored Sep 9, 2024
1 parent c3c468c commit fd116a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class IngressStrategyV1 extends IngressStrategy {
Option(ingress)
.map(ingress => ingress.getSpec.getRules.head)
.map(rule => rule.getHost -> rule.getHttp.getPaths.head.getPath)
.map { case (host, path) => s"http://$host$path" }
.map { case (host, path) => s"http://$host${path.replaceAll("\\/$", "")}" }
.getOrElse {
Utils.using(clusterClient)(client => client.getWebInterfaceURL)
}
Expand Down

0 comments on commit fd116a1

Please sign in to comment.