From 3468b9c28c345655ab0e0ba58f2aa23a6d2d1e33 Mon Sep 17 00:00:00 2001 From: Akash Shrivastava Date: Thu, 7 Nov 2024 14:15:44 +0530 Subject: [PATCH 1/2] fix: [PL-58400]: Putting re-write behind if condition to not render if not provided in override Signed-off-by: Akash Shrivastava --- src/common/templates/_virtualservice.tpl | 2 ++ 1 file changed, 2 insertions(+) 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 }} From 83277ef546a5ed5a35145ced8ed1c77472d76879 Mon Sep 17 00:00:00 2001 From: Akash Shrivastava Date: Thu, 7 Nov 2024 15:17:19 +0530 Subject: [PATCH 2/2] update chart version Signed-off-by: Akash Shrivastava --- src/common/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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