From 607487597014020ff79600aa3a9315b40a234f71 Mon Sep 17 00:00:00 2001 From: Edan Schwartz Date: Thu, 13 Mar 2025 14:59:02 -0500 Subject: [PATCH] Fix unsupported regex in ingress-nginx config The ingress component failed to deploy when running make deploy, with: W0313 14:22:12.722815 31494 warnings.go:70] path /(/|$) cannot be used with pathType Prefix Error: 1 error occurred: * admission webhook "validate.nginx.ingress.kubernetes.io" denied the request: ingress contains invalid paths: path /raster(/|$)(.*) cannot be used with pathType Prefix path /stac(/|$)(.*) cannot be used with pathType Prefix path /vector(/|$)(.*) cannot be used with pathType Prefix path /(/|$) cannot be used with pathType Prefix Changing the type to ImplementationSpecific fixes the error, and the app seems to function as expected --- helm-chart/eoapi/templates/services/ingress-nginx.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helm-chart/eoapi/templates/services/ingress-nginx.yaml b/helm-chart/eoapi/templates/services/ingress-nginx.yaml index b4243552..b23e8bce 100644 --- a/helm-chart/eoapi/templates/services/ingress-nginx.yaml +++ b/helm-chart/eoapi/templates/services/ingress-nginx.yaml @@ -33,7 +33,7 @@ spec: {{- range $serviceName, $v := .Values }} {{- if has $serviceName $.Values.apiServices }} {{- if (and (index $v "enabled") (not $.Values.testing)) }} - - pathType: Prefix + - pathType: ImplementationSpecific path: "/{{ $serviceName }}(/|$)(.*)" backend: service: @@ -41,7 +41,7 @@ spec: port: number: {{ $.Values.service.port }} {{- else if (and (index $v "enabled") ($.Values.testing)) }} - - pathType: Prefix + - pathType: ImplementationSpecific path: "/{{ $serviceName }}{{ $.Release.Name }}(/|$)(.*)" backend: service: @@ -52,7 +52,7 @@ spec: {{- end }}{{/* END: if has $serviceName $.Values.apiServices */}} {{- end }}{{/* END: range $serviceName, $v := .Values*/}} {{- if (and (not $.Values.testing) (.Values.docServer.enabled)) }} - - pathType: Prefix + - pathType: ImplementationSpecific path: /(/|$) backend: service: