-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Gateway API (HTTPRoute) to Helm chart
- Loading branch information
1 parent
fdc94f0
commit d5395ea
Showing
3 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# SPDX-FileCopyrightText: Copyright 2023 The Minder Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
{{ if .Values.routes.enabled }} | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: GRPCRoute | ||
metadata: | ||
name: {{- .Values.routes.name }} | ||
labels: | ||
{{ include "common.labels.standard" (dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} | ||
spec: | ||
parentRefs: | ||
{{- if .Values.routes.parentRefs }} | ||
{{- toYaml .Values.routes.parentRefs | nindent 4 }} | ||
{{- end }} | ||
hostnames: | ||
- "{{ .Values.hostname }}" | ||
rules: | ||
- backendRefs: | ||
- group: "" | ||
kind: Service | ||
name: minder-grpc | ||
port: !!int "{{ .Values.service.grpcPort }}" | ||
weight: 1 | ||
# If no matches are specified, the implementation MUST match every gRPC request. | ||
matches: [] | ||
--- | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: HTTPRoute | ||
metadata: | ||
name: {{- .Values.routes.name }} | ||
labels: | ||
{{ include "common.labels.standard" (dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} | ||
spec: | ||
parentRefs: | ||
{{- if .Values.routes.parentRefs }} | ||
{{- toYaml .Values.routes.parentRefs | nindent 4 }} | ||
{{- end }} | ||
hostnames: | ||
- "{{ .Values.hostname }}" | ||
rules: | ||
- backendRefs: | ||
- group: "" | ||
kind: Service | ||
name: minder-http | ||
port: !!int "{{ .Values.service.httpPort }}" | ||
weight: 1 | ||
matches: | ||
- path: | ||
type: PathPrefix | ||
value: / | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters