Skip to content

Commit 83fb7c7

Browse files
modify mapToRoot to be default backend and use defaultPath
1 parent 09fe1d9 commit 83fb7c7

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

xenit-aps/templates/ingress/ingress.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
# Provide a unique secret to store the SSL credentials
1818
secretName: tls-activiti-{{ .Release.Name }}-secret
1919
{{- end }}
20-
{{- if not .Values.ingress.defaultBackend.mapToRootOnly }}
20+
{{- if .Values.ingress.defaultBackend }}
2121
defaultBackend:
2222
service:
2323
name: {{ .Values.ingress.defaultBackend.service }}
@@ -28,14 +28,14 @@ spec:
2828
- host: {{ required "A host where your activiti services can be reached on must be specified in values.ingress.host" .Values.ingress.host }}
2929
http:
3030
paths:
31-
{{- if .Values.ingress.defaultBackend }}
31+
{{- if .Values.ingress.defaultPath }}
3232
- path: /
3333
pathType: Prefix
3434
backend:
3535
service:
36-
name: {{ .Values.ingress.defaultBackend.service }}
36+
name: {{ .Values.ingress.defaultPath.service }}
3737
port:
38-
number: {{ .Values.ingress.defaultBackend.port }}
38+
number: {{ .Values.ingress.defaultPath.port }}
3939
{{- end }}
4040
{{- if .Values.activiti.ingress.enabled }}
4141
- path: /activiti-app

xenit-aps/values.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ ingress:
4242
protocol: 'http'
4343
ingressAnnotations:
4444
kubernetes.io/ingress.class: "nginx"
45-
defaultBackend:
46-
mapToRootOnly: true
45+
defaultPath:
4746
service: nginx-default-service
4847
port: 30403
4948
blockedPaths:

0 commit comments

Comments
 (0)