Skip to content

Commit 9b22fb7

Browse files
committed
feat: add openshift nginx route
1 parent 4a1fc6e commit 9b22fb7

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-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.26
4+
version: 1.1.27
55
appVersion: latest
66
type: application
77
home: https://www.steadybit.com/
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{{- if and .Values.gateway.enabled .Values.gateway.ingress.nginx.openshift -}}
2+
---
3+
apiVersion: route.openshift.io/v1
4+
kind: Route
5+
metadata:
6+
name: gateway-nginx-route
7+
namespace: {{ .Release.Namespace }}
8+
{{- with .Values.gateway.ingress.nginx.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
12+
spec:
13+
host: {{ .Values.gateway.ingress.nginx.host | default "" }}
14+
to:
15+
kind: Service
16+
name: nginxingress-controller-nginx-ingress-controller
17+
weight: 100
18+
port:
19+
targetPort: http
20+
{{- if .Values.gateway.ingress.nginx.tls.enabled }}
21+
tls:
22+
termination: edge
23+
{{- if .Values.gateway.ingress.nginx.tls.secretName }}
24+
key: ${key}
25+
certificate: ${certificate}
26+
{{- end }}
27+
{{- end }}
28+
{{- end -}}
29+

charts/steadybit-shopping-demo/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ gateway:
5555
# Enterprise Nginx ingress configuration
5656
nginx:
5757
enabled: false # Set to true to enable Nginx ingress
58+
openshift: false # Set to true if running on OpenShift
5859
host: null # Custom host for Nginx ingress (if null, uses gateway.ingress.host)
5960
annotations: {}
6061
tls:

0 commit comments

Comments
 (0)