Skip to content

Commit

Permalink
chart update
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinshakya507 committed Aug 19, 2024
1 parent 15169fc commit 8fbe6c2
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 8 deletions.
2 changes: 1 addition & 1 deletion helm/grpc-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.0.2
version: 2.0.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
18 changes: 12 additions & 6 deletions helm/grpc-service/templates/grpcRoute.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
apiVersion: gateway.networking.k8s.io/v1alpha2
{{- if .Values.grpcRoute.enabled -}}
{{- $grpcPort := .Values.grpc.port -}}
{{- $name := include "grpc-service.fullname" . -}}
apiVersion: gateway.networking.k8s.io/v1
kind: GRPCRoute
metadata:
name: {{ include "grpc-service.fullname" . }}
Expand All @@ -9,10 +12,12 @@ spec:
{{- range .Values.grpcRoute.parentRefs }}
- name: {{ .name }}
kind: {{ .kind }}
namespace: {{ .namespace | default "default" }}
{{- if .namespace }}
namespace: {{ .namespace }}
{{- end }}
{{- end }}

hostnames:``
hostnames:
{{- range .Values.grpcRoute.hostnames }}
- "{{ . }}"
{{- end }}
Expand All @@ -33,8 +38,9 @@ spec:
{{- range .backendRefs }}
- group: "{{ .group | default "" }}"
kind: "{{ .kind }}"
name: {{ .name }}
port: {{ .port }}
weight: {{ .weight }}
name: {{ $name }}
port: {{ $grpcPort }}
weight: {{ .weight | default 1 }}
{{- end }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion helm/grpc-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ httpRoute:

grpcRoute:
enabled: false
name: grpcroute
parentRefs:
- name: envoygateway
kind: Gateway
hostnames:
- "grpc-envoy.hamropatro.com"
rules:
Expand Down
17 changes: 17 additions & 0 deletions test2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: foo-route
labels:
gateway: prod-web-gw
spec:
hostnames:
- foo.example.com
rules:
- backendRefs:
- name: foo-v1
port: 8080
weight: 90
# - name: foo-v2
# port: 8080
# weight: 10

0 comments on commit 8fbe6c2

Please sign in to comment.