gearheads
/
mastodon
Archived
2
0
Fork 0

helm: Fix ingress pathType (#19729)

gh/stable
Moritz Hedtke 2022-11-08 17:20:09 +01:00 committed by GitHub
parent fd3c482104
commit f7613febb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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