Skip to content

Commit 6074875

Browse files
authored
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
1 parent 456bfff commit 6074875

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

helm-chart/eoapi/templates/services/ingress-nginx.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ spec:
3333
{{- range $serviceName, $v := .Values }}
3434
{{- if has $serviceName $.Values.apiServices }}
3535
{{- if (and (index $v "enabled") (not $.Values.testing)) }}
36-
- pathType: Prefix
36+
- pathType: ImplementationSpecific
3737
path: "/{{ $serviceName }}(/|$)(.*)"
3838
backend:
3939
service:
4040
name: {{ $serviceName }}
4141
port:
4242
number: {{ $.Values.service.port }}
4343
{{- else if (and (index $v "enabled") ($.Values.testing)) }}
44-
- pathType: Prefix
44+
- pathType: ImplementationSpecific
4545
path: "/{{ $serviceName }}{{ $.Release.Name }}(/|$)(.*)"
4646
backend:
4747
service:
@@ -52,7 +52,7 @@ spec:
5252
{{- end }}{{/* END: if has $serviceName $.Values.apiServices */}}
5353
{{- end }}{{/* END: range $serviceName, $v := .Values*/}}
5454
{{- if (and (not $.Values.testing) (.Values.docServer.enabled)) }}
55-
- pathType: Prefix
55+
- pathType: ImplementationSpecific
5656
path: /(/|$)
5757
backend:
5858
service:

0 commit comments

Comments
 (0)