merlyn/cloud-deployments/helm/charts/anythingllm/templates/httproute.yaml
Kurt c442ba85d8
Helm chart updates (#5410)
* move strategy to deployment spec

Signed-off-by: Busta Pipes <busta.pipes@gmail.com>

* add optional httproute resource

Signed-off-by: Busta Pipes <busta.pipes@gmail.com>

---------

Signed-off-by: Busta Pipes <busta.pipes@gmail.com>
Co-authored-by: Busta Pipes <busta.pipes@gmail.com>
2026-04-11 19:35:00 -07:00

39 lines
961 B
YAML

{{- if .Values.httpRoute.enabled -}}
{{- $fullName := include "anythingllm.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: {{ $fullName }}
labels:
{{- include "anythingllm.labels" . | nindent 4 }}
{{- with .Values.httpRoute.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
parentRefs:
{{- with .Values.httpRoute.parentRefs }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.httpRoute.hostnames }}
hostnames:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
{{- range .Values.httpRoute.rules }}
{{- with .matches }}
- matches:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .filters }}
filters:
{{- toYaml . | nindent 8 }}
{{- end }}
backendRefs:
- name: {{ $fullName }}
port: {{ $svcPort }}
weight: 1
{{- end }}
{{- end }}