From c77f152e9cdca961b2c1cccac60994a2a3b5f9e5 Mon Sep 17 00:00:00 2001 From: Dhiraj Bokde Date: Sat, 6 Apr 2024 10:47:13 -0700 Subject: [PATCH] fix: disable Istio injection in deployment for non-istio model registries, fixes RHOAIENG-5154 (#82) --- internal/controller/config/templates/deployment.yaml.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/config/templates/deployment.yaml.tmpl b/internal/controller/config/templates/deployment.yaml.tmpl index 41195df..69f6ee9 100644 --- a/internal/controller/config/templates/deployment.yaml.tmpl +++ b/internal/controller/config/templates/deployment.yaml.tmpl @@ -24,7 +24,7 @@ spec: labels: app: {{.Name}} component: model-registry - sidecar.istio.io/inject: "true" + sidecar.istio.io/inject: {{with .Spec.Istio}}"true"{{else}}"false"{{end}} annotations: {{- if .Spec.Postgres}} traffic.sidecar.istio.io/excludeOutboundPorts: {{.Spec.Postgres.Port}}