aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'charts/recluse/templates/httproute.yaml')
-rw-r--r--charts/recluse/templates/httproute.yaml26+26 −0
1 files changed, 26 insertions, 0 deletions
diff --git a/charts/recluse/templates/httproute.yaml b/charts/recluse/templates/httproute.yaml
new file mode 100644
--- /dev/null
+++ b/charts/recluse/templates/httproute.yaml
@@ -0,0 +1,26 @@
+# SPDX-FileCopyrightText: 2026 Nikolay Govorov
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
+{{- if .Values.route.enabled }}
+apiVersion: gateway.networking.k8s.io/v1
+kind: HTTPRoute
+metadata:
+ name: {{ include "recluse.fullname" . }}
+ labels:
+ {{- include "recluse.labels" . | nindent 4 }}
+spec:
+ {{- with .Values.route.parentRefs }}
+ parentRefs:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
+ {{- with .Values.route.hostnames }}
+ hostnames:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
+ rules:
+ - backendRefs:
+ - name: {{ include "recluse.fullname" . }}
+ port: {{ .Values.service.port }}
+{{- end }}
+
+# vim: set filetype=helm: