Skip to content

Commit d6abec2

Browse files
Enhance ingress configuration in test values for Traefik with path transformation annotations
1 parent b091f48 commit d6abec2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/helm-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ jobs:
197197
kubectl get middleware.traefik.io --all-namespaces -o custom-columns='NAMESPACE:.metadata.namespace,NAME:.metadata.name' --no-headers | while read -r namespace name; do kubectl describe middleware.traefik.io "$name" -n "$namespace"; done
198198
199199
PUBLICIP='http://'$(kubectl -n kube-system get svc traefik -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
200-
export VECTOR_ENDPOINT=$PUBLICIP/vector$RELEASE_NAME
201-
export STAC_ENDPOINT=$PUBLICIP/stac$RELEASE_NAME
202-
export RASTER_ENDPOINT=$PUBLICIP/raster$RELEASE_NAME
200+
export VECTOR_ENDPOINT=$PUBLICIP/vector
201+
export STAC_ENDPOINT=$PUBLICIP/stac
202+
export RASTER_ENDPOINT=$PUBLICIP/raster
203203
204204
echo '#################################'
205205
echo $VECTOR_ENDPOINT

helm-chart/eoapi/test-k3s-unittest-values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ testing: true
33
ingress:
44
enabled: true
55
className: "traefik"
6+
pathType: "Prefix"
7+
annotations:
8+
traefik.ingress.kubernetes.io/router.entrypoints: web
9+
traefik.ingress.kubernetes.io/router.pathtransform.regex: "^/([^/]+)(.*)"
10+
traefik.ingress.kubernetes.io/router.pathtransform.replacement: "/$1$2"
611
pgstacBootstrap:
712
enabled: true
813
settings:

0 commit comments

Comments
 (0)