File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
22name : single-deployment
33description : A Helm chart for single deployment application
44type : application
5- version : 0.4.1
5+ version : 0.4.2
66appVersion : " latest"
77maintainers :
88 - name : pmint93
Original file line number Diff line number Diff line change 2020 - path :
2121 type : {{ .Values.httproute.pathType }}
2222 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 }}
2335 backendRefs :
2436 - kind : Service
2537 name : {{ template "single-deployment.fullname" $ }}
Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ httproute:
173173 labels : {}
174174 path : /
175175 pathType : PathPrefix
176+ # rewriteTo: /
176177 hosts :
177178 - default-backend.example.io
178179
You can’t perform that action at this time.
0 commit comments