diff --git a/src/common/Chart.yaml b/src/common/Chart.yaml index 6b7233a..3d02b37 100644 --- a/src/common/Chart.yaml +++ b/src/common/Chart.yaml @@ -15,7 +15,7 @@ type: library # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.3.67 +version: 1.3.68 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/src/common/templates/_virtualservice.tpl b/src/common/templates/_virtualservice.tpl index a2c2a64..5dea249 100644 --- a/src/common/templates/_virtualservice.tpl +++ b/src/common/templates/_virtualservice.tpl @@ -46,6 +46,7 @@ spec: - uri: {{ $object.pathMatchType }}: {{ include "harnesscommon.tplvalues.render" ( dict "value" $path.path "context" $) }} name: {{ (cat $objName "-" $i) | nospace }} + {{- if $object.pathRewrite }} rewrite: {{- if eq $object.pathMatchType "regex" }} uriRegexRewrite: @@ -56,6 +57,7 @@ spec: {{- else }} uri: {{ include "harnesscommon.tplvalues.render" ( dict "value" $object.pathRewrite "context" $) }} {{- end }} + {{- end }} route: - destination: host: {{ $serviceName }}