mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
967 B
39 lines
967 B
{{- if .Values.httpRoute.enabled -}}
|
|
{{- $fullName := include "otlp_forwarder.fullname" . -}}
|
|
{{- $svcPort := .Values.service.port -}}
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: {{ $fullName }}
|
|
labels:
|
|
{{- include "otlp_forwarder.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 }}
|