chore: remove fullname because it is not needed
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: {{ include "bentopdf.fullname" . }}
|
||||
name: {{ include "bentopdf.name" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "bentopdf.labels" . | nindent 4 }}
|
||||
{{- with .Values.httpRoute.annotations }}
|
||||
@@ -14,7 +15,7 @@ spec:
|
||||
{{- if .Values.httpRoute.parentRefs }}
|
||||
{{- range $ref := .Values.httpRoute.parentRefs }}
|
||||
- name: {{ $.Values.gateway.name | default $ref.name | quote }}
|
||||
namespace: {{ $ref.namespace | default (default .Release.Namespace .Values.gateway.namespace) | quote }}
|
||||
namespace: {{ $ref.namespace | default (default $.Release.Namespace $.Values.gateway.namespace) | quote }}
|
||||
sectionName: {{ $ref.sectionName | default "http" | quote }}
|
||||
{{- with $ref.kind }}
|
||||
kind: {{ . | quote }}
|
||||
@@ -25,8 +26,8 @@ spec:
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
# Default parentRef when parentRefs is empty or not set
|
||||
- name: {{ .Values.gateway.name | default (printf "%s-gateway" (include "bentopdf.fullName" .)) | quote }}
|
||||
namespace: {{ default .Release.Namespace .Values.gateway.namespace | quote }}
|
||||
- name: {{ .Values.gateway.name | default (printf "%s-gateway" (include "bentopdf.name" $)) | quote }}
|
||||
namespace: {{ .Values.gateway.namespace | default .Release.Namespace | quote }}
|
||||
sectionName: "http"
|
||||
{{- end }}
|
||||
{{- with .Values.httpRoute.hostnames }}
|
||||
@@ -37,14 +38,14 @@ spec:
|
||||
{{- range .Values.httpRoute.rules }}
|
||||
- {{- with .matches }}
|
||||
matches:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .filters }}
|
||||
filters:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
backendRefs:
|
||||
- name: {{ include "bentopdf.fullname" }}
|
||||
- name: {{ include "bentopdf.name" $ }}
|
||||
port: {{ $.Values.service.port }}
|
||||
weight: 1
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user