File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
2
2
name : single-deployment
3
3
description : A Helm chart for single deployment application
4
4
type : application
5
- version : 0.4.1
5
+ version : 0.4.2
6
6
appVersion : " latest"
7
7
maintainers :
8
8
- name : pmint93
Original file line number Diff line number Diff line change 20
20
- path :
21
21
type : {{ .Values.httproute.pathType }}
22
22
value : {{ .Values.httproute.path }}
23
+ {{- if .Values.httproute.rewriteTo }}
24
+ filters :
25
+ - type : URLRewrite
26
+ urlRewrite :
27
+ path :
28
+ type : {{- if eq .Values.httproute.pathType "Exact" }} ReplaceFullPath {{ else }} ReplacePrefixMatch {{ end }}
29
+ {{- if eq .Values.httproute.pathType "Exact" }}
30
+ replaceFullPath : {{ .Values.httproute.rewriteTo }}
31
+ {{- else }}
32
+ replacePrefixMatch : {{ .Values.httproute.rewriteTo }}
33
+ {{- end }}
34
+ {{- end }}
23
35
backendRefs :
24
36
- kind : Service
25
37
name : {{ template "single-deployment.fullname" $ }}
Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ httproute:
173
173
labels : {}
174
174
path : /
175
175
pathType : PathPrefix
176
+ # rewriteTo: /
176
177
hosts :
177
178
- default-backend.example.io
178
179
You can’t perform that action at this time.
0 commit comments