Skip to content

Commit

Permalink
modify mapToRoot to be default backend and use defaultPath
Browse files Browse the repository at this point in the history
  • Loading branch information
hechmi-dammak-xenit committed Jul 31, 2024
1 parent 09fe1d9 commit 83fb7c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions xenit-aps/templates/ingress/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
# Provide a unique secret to store the SSL credentials
secretName: tls-activiti-{{ .Release.Name }}-secret
{{- end }}
{{- if not .Values.ingress.defaultBackend.mapToRootOnly }}
{{- if .Values.ingress.defaultBackend }}
defaultBackend:
service:
name: {{ .Values.ingress.defaultBackend.service }}
Expand All @@ -28,14 +28,14 @@ spec:
- host: {{ required "A host where your activiti services can be reached on must be specified in values.ingress.host" .Values.ingress.host }}
http:
paths:
{{- if .Values.ingress.defaultBackend }}
{{- if .Values.ingress.defaultPath }}
- path: /
pathType: Prefix
backend:
service:
name: {{ .Values.ingress.defaultBackend.service }}
name: {{ .Values.ingress.defaultPath.service }}
port:
number: {{ .Values.ingress.defaultBackend.port }}
number: {{ .Values.ingress.defaultPath.port }}
{{- end }}
{{- if .Values.activiti.ingress.enabled }}
- path: /activiti-app
Expand Down
3 changes: 1 addition & 2 deletions xenit-aps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ ingress:
protocol: 'http'
ingressAnnotations:
kubernetes.io/ingress.class: "nginx"
defaultBackend:
mapToRootOnly: true
defaultPath:
service: nginx-default-service
port: 30403
blockedPaths:
Expand Down

0 comments on commit 83fb7c7

Please sign in to comment.