Skip to content

Commit

Permalink
feat(application): enable istio uri rewrite configuration (#94)
Browse files Browse the repository at this point in the history
Let the application charts user change the rewrite uri
when the istio virtual service is enabled.

Co-authored-by: Florian Heubeck <40993644+heubeck@users.noreply.github.com>
  • Loading branch information
beiertu-mms and heubeck committed Jan 31, 2024
1 parent 27ceddc commit 54d22c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/application/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ maintainers:
- name: MediaMarktSaturn
url: https://github.com/MediaMarktSaturn
appVersion: 1.0.0
version: 1.12.0
version: 1.13.0
6 changes: 3 additions & 3 deletions charts/application/templates/istio-virtual-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ spec:
- route:
- destination:
host: {{ .Release.Name }}
{{- if not (eq .Values.istio.ingress.uriPrefix "/") }}
{{- if not (eq .Values.istio.ingress.uriPrefix "/") }}
match:
- uri:
prefix: {{ .Values.istio.ingress.uriPrefix }}
rewrite:
uri: /
{{ end }}
uri: {{ .Values.istio.ingress.uriRewrite }}
{{ end }}
timeout: {{ .Values.service.timeout }}
{{- end }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/application/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ istio:
gateway: public-gateway
host: "*"
uriPrefix: /
uriRewrite: /

linkerd:
enabled: false
Expand Down

0 comments on commit 54d22c8

Please sign in to comment.