From 9221ec097ebe6a6ec9d6cb21d5dd427d4ce4bf06 Mon Sep 17 00:00:00 2001
From: "Andriy Halka [EPAM / GCP]" <andriy_halka@epam.com>
Date: Thu, 13 Apr 2023 10:32:02 +0000
Subject: [PATCH] GONGR-6776 Remove no-istio modes

---
 devops/gc/deploy/README.md                            | 1 -
 devops/gc/deploy/templates/legal-virtual-service.yaml | 2 --
 devops/gc/deploy/values.yaml                          | 1 -
 3 files changed, 4 deletions(-)

diff --git a/devops/gc/deploy/README.md b/devops/gc/deploy/README.md
index 5e3eaafea..62b82fb9c 100644
--- a/devops/gc/deploy/README.md
+++ b/devops/gc/deploy/README.md
@@ -135,7 +135,6 @@ First you need to set variables in **values.yaml** file using any code editor. S
 **conf.postgresSecretName** | Secret name for postgres service | string | legal-postgres-secret | yes
 **conf.rabbitmqSecretName** | Secret name for rabbitmq service | string | rabbitmq-secret | yes
 **conf.bootstrapSecretName** | Secret name for bootstrap | string | datafier-secret | yes
-**conf.istionEnabled** | whether enable istio resources | boolean | true | yes
 **conf.bootstrapEnabled** | whether bootstrap is enabled | boolean | false | yes
 
 ### Istio variables
diff --git a/devops/gc/deploy/templates/legal-virtual-service.yaml b/devops/gc/deploy/templates/legal-virtual-service.yaml
index a515e99af..e0db744aa 100644
--- a/devops/gc/deploy/templates/legal-virtual-service.yaml
+++ b/devops/gc/deploy/templates/legal-virtual-service.yaml
@@ -1,4 +1,3 @@
-{{- if .Values.conf.istioEnabled }}
 apiVersion: networking.istio.io/v1alpha3
 kind: VirtualService
 metadata:
@@ -24,4 +23,3 @@ spec:
             port:
               number: 80
             host: {{ printf "%s.%s.svc.cluster.local" .Values.conf.appName .Release.Namespace | quote }}
-{{- end }}
diff --git a/devops/gc/deploy/values.yaml b/devops/gc/deploy/values.yaml
index ffb1f2dc7..866874e20 100644
--- a/devops/gc/deploy/values.yaml
+++ b/devops/gc/deploy/values.yaml
@@ -33,7 +33,6 @@ conf:
   postgresSecretName: "legal-postgres-secret"
   rabbitmqSecretName: "rabbitmq-secret"
   bootstrapSecretName: "datafier-secret"
-  istioEnabled: true
   bootstrapEnabled: false
 
 istio:
-- 
GitLab