Browse Source

helm: Fix ingress pathType (#19729)

closed-social-glitch-2
Moritz Hedtke 1 year ago
committed by GitHub
parent
commit
f7613febb3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      chart/templates/ingress.yaml

+ 3
- 3
chart/templates/ingress.yaml View File

@ -47,9 +47,9 @@ spec:
servicePort: {{ $webPort }}
{{- end }}
{{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
pathType: ImplementationSpecific
pathType: Prefix
{{- end }}
- path: {{ .path }}api/v1/streaming
- path: {{ .path }}api/v1/streaming/
backend:
{{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
service:
@ -61,7 +61,7 @@ spec:
servicePort: {{ $streamingPort }}
{{- end }}
{{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
pathType: ImplementationSpecific
pathType: Exact
{{- end }}
{{- end }}
{{- end }}

Loading…
Cancel
Save