Skip to content

Commit e3b829d

Browse files
committed
feat: add Gateway API HTTPRoute support to helm chart
1 parent 2e08fd2 commit e3b829d

File tree

3 files changed

+44
-1
lines changed

3 files changed

+44
-1
lines changed

charts/steadybit-shopping-demo/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: steadybit-shopping-demo
33
description: Steadybit shopping-demo application Helm chart for Kubernetes.
4-
version: 1.1.30
4+
version: 1.1.31
55
appVersion: latest
66
type: application
77
home: https://www.steadybit.com/
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{{- if and .Values.gateway.enabled .Values.gateway.httpRoute.enabled -}}
2+
---
3+
apiVersion: gateway.networking.k8s.io/v1
4+
kind: HTTPRoute
5+
metadata:
6+
name: gateway-httproute
7+
namespace: {{ .Release.Namespace }}
8+
{{- with .Values.gateway.httpRoute.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
12+
spec:
13+
parentRefs:
14+
- name: {{ .Values.gateway.httpRoute.parentRefs.name }}
15+
{{- with .Values.gateway.httpRoute.parentRefs.namespace }}
16+
namespace: {{ . }}
17+
{{- end }}
18+
{{- with .Values.gateway.httpRoute.parentRefs.sectionName }}
19+
sectionName: {{ . }}
20+
{{- end }}
21+
{{- $host := .Values.gateway.httpRoute.host | default .Values.gateway.ingress.host }}
22+
{{- if $host }}
23+
hostnames:
24+
- {{ $host | quote }}
25+
{{- end }}
26+
rules:
27+
- matches:
28+
- path:
29+
type: PathPrefix
30+
value: /
31+
backendRefs:
32+
- name: gateway
33+
port: 80
34+
{{- end -}}

charts/steadybit-shopping-demo/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ gateway:
6161
tls:
6262
enabled: false
6363
secretName: gateway-nginx-tls-secret
64+
# Gateway API HTTPRoute configuration
65+
httpRoute:
66+
enabled: false # Set to true to create an HTTPRoute resource (requires Gateway API CRDs)
67+
host: null # Hostname for the HTTPRoute (if null, uses gateway.ingress.host)
68+
annotations: {}
69+
parentRefs:
70+
name: "" # Name of the Gateway resource to attach to
71+
namespace: null # Namespace of the Gateway resource (if different from release namespace)
72+
sectionName: null # Specific listener name on the Gateway
6473
# nodeSelector -- Node labels for pod assignment
6574
nodeSelector: {}
6675
bestsellerFashion:

0 commit comments

Comments
 (0)