fix: remove v1alpha2 gateway api support

Signed-off-by: Henrik Gerdes <hegerdes@outlook.de>
pull/12912/head
Henrik Gerdes 1 year ago
parent d22939b439
commit 5d0c6e9ae4
No known key found for this signature in database

@ -338,11 +338,7 @@ spec:
const defaultHTTPRoute = `{{- if .Values.httpRoute.enabled -}}
{{- $fullName := include "<CHARTNAME>.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if .Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1" -}}
apiVersion: gateway.networking.k8s.io/v1
{{- else -}}
apiVersion: gateway.networking.k8s.io/v1alpha2
{{- end }}
kind: HTTPRoute
metadata:
name: {{ $fullName }}

Loading…
Cancel
Save