2026-01-14 21:45:05 +00:00
|
|
|
{{- if .Values.gateway.enabled -}}
|
2026-02-02 21:21:53 +00:00
|
|
|
{{- $gatewayName := .Values.gateway.name -}}
|
|
|
|
|
{{- if not $gatewayName -}}
|
2026-02-19 11:06:50 +01:00
|
|
|
{{- $gatewayName = printf "%s-gateway" (include "bentopdf.fullname" .) -}}
|
2026-02-02 21:21:53 +00:00
|
|
|
{{- end -}}
|
|
|
|
|
{{- $gatewayNs := default .Release.Namespace .Values.gateway.namespace -}}
|
2026-01-14 21:45:05 +00:00
|
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
|
|
|
kind: Gateway
|
|
|
|
|
metadata:
|
2026-02-02 21:21:53 +00:00
|
|
|
name: {{ $gatewayName }}
|
|
|
|
|
namespace: {{ $gatewayNs }}
|
2026-01-14 21:45:05 +00:00
|
|
|
labels:
|
2026-02-19 11:06:50 +01:00
|
|
|
{{- include "bentopdf.labels" . | nindent 4 }}
|
2026-01-14 21:45:05 +00:00
|
|
|
{{- with .Values.gateway.annotations }}
|
|
|
|
|
annotations:
|
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
spec:
|
|
|
|
|
gatewayClassName: {{ required "values.gateway.gatewayClassName is required when gateway.enabled=true" .Values.gateway.gatewayClassName }}
|
|
|
|
|
listeners:
|
|
|
|
|
{{- toYaml .Values.gateway.listeners | nindent 4 }}
|
|
|
|
|
{{- end }}
|