From f3f86355cdc94b99f3525301c1f70b9aea2a21f8 Mon Sep 17 00:00:00 2001
From: DGerashchenko <DGerashchenko@slb.com>
Date: Mon, 13 Dec 2021 18:13:51 +0300
Subject: [PATCH] fix ISTIO config checking error

(cherry picked from commit de7f6da2540d06a1241c6d4f783de9199cdd23ba)
---
 devops/azure/chart/templates/virtual-service.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/devops/azure/chart/templates/virtual-service.yaml b/devops/azure/chart/templates/virtual-service.yaml
index bdde0f07d..e0e9ab224 100644
--- a/devops/azure/chart/templates/virtual-service.yaml
+++ b/devops/azure/chart/templates/virtual-service.yaml
@@ -1,5 +1,6 @@
 ---
 # Source: /devops/azure/chart/templates/virtual-service.yaml
+{{- if .Values.istioDnsHost }}
 apiVersion: networking.istio.io/v1alpha3
 kind: VirtualService
 metadata:
@@ -32,4 +33,5 @@ spec:
       - PATCH
       - DELETE
       allowOrigins:
-      - prefix: "*"
\ No newline at end of file
+      - prefix: "*"
+{{- end }}
\ No newline at end of file
-- 
GitLab