diff --git a/devops/gcp/deploy/README.md b/devops/gcp/deploy/README.md index c686ea96234bf47b6bcdfc5fbaac9ea438e2d01a..dbd78a3b361b4d04517d7c3030dd1fea23e04991 100644 --- a/devops/gcp/deploy/README.md +++ b/devops/gcp/deploy/README.md @@ -122,6 +122,7 @@ First you need to set variables in **values.yaml** file using any code editor. S **rabbitmqSecretName** | Secret name for rabbitmq service | string | rabbitmq-secret | yes **bootstrapSecretName** | Secret name for bootstrap | string | datafier-secret | yes **onPremEnabled** | whether on-prem is enabled | boolean | false | yes +**istionEnabled** | whether enable istio resources | boolean | true | yes **bootstrapEnabled** | whether bootstrap is enabled | boolean | false | yes **domain** | your domain | string | - | yes diff --git a/devops/gcp/deploy/templates/legal-virtual-service.yml b/devops/gcp/deploy/templates/legal-virtual-service.yml index e516e72aa90823c16f39c5505c8b4b4771defcca..2b4b78df62257687caed48cf503b0a849611f58d 100644 --- a/devops/gcp/deploy/templates/legal-virtual-service.yml +++ b/devops/gcp/deploy/templates/legal-virtual-service.yml @@ -1,3 +1,4 @@ +{{- if .Values.conf.istioEnabled }} apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: @@ -23,3 +24,4 @@ spec: port: number: 80 host: "{{ .Values.conf.appName }}.{{ .Release.Namespace }}.svc.cluster.local" +{{- end }} diff --git a/devops/gcp/deploy/values.yaml b/devops/gcp/deploy/values.yaml index 662280636461ace585ff9182773a92b7361ed65a..094b6ed85589b8c60b1c5ed9581b3e5ccb8aa46b 100644 --- a/devops/gcp/deploy/values.yaml +++ b/devops/gcp/deploy/values.yaml @@ -21,5 +21,6 @@ conf: rabbitmqSecretName: "rabbitmq-secret" bootstrapSecretName: "datafier-secret" onPremEnabled: false + istioEnabled: true bootstrapEnabled: false domain: ""