You've already forked athens-proxy-charts
f760568ac5
Generate README / generate-parameters (push) Failing after 39s
Helm / helm-lint (push) Successful in 14s
Helm / helm-unittest (push) Successful in 28s
Markdown linter / markdown-link-checker (push) Successful in 45s
Markdown linter / markdown-lint (push) Successful in 33s
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
{{- if eq (include "athens-proxy.httpRoute.enabled" $) "true" }}
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
{{- with (include "athens-proxy.httpRoute.annotations" . | fromYaml) }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with (include "athens-proxy.httpRoute.labels" . | fromYaml) }}
|
|
labels:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
name: {{ include "athens-proxy.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
{{- with .Values.gatewayAPI.core.httpRoute.hostnames }}
|
|
hostnames:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.gatewayAPI.core.httpRoute.parentRefs }}
|
|
parentRefs:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
rules:
|
|
- backendRefs:
|
|
- kind: Service
|
|
name: {{ include "athens-proxy.service.name" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
port: {{ .Values.service.port }}
|
|
weight: 1
|
|
{{- with .Values.gatewayAPI.core.httpRoute.matches }}
|
|
matches:
|
|
{{- toYaml . | nindent 6 }}
|
|
{{- end }}
|
|
{{- end }}
|