The ingress resulted in a double slash, if there is are slashes at the end of the ingress_path variable (#1374)

Co-authored-by: lumarel <lumarel@users.noreply.github.com>
This commit is contained in:
Lukas Magauer
2023-04-20 05:35:36 +02:00
committed by GitHub
parent be4fd1364c
commit d914edf3e0

View File

@@ -34,7 +34,7 @@ spec:
port:
number: 80
{% if ingress_controller|lower == "contour" %}
- path: '{{ ingress_path }}/websocket'
- path: '{{ ingress_path.rstrip("/") }}/websocket'
pathType: '{{ ingress_path_type }}'
backend:
service: