From aa97be1ce872c779a3d413e5ab21887b93e10237 Mon Sep 17 00:00:00 2001
From: Aliaksandr Ramanovich <aliaksandr_ramanovich1@epam.com>
Date: Wed, 31 Jul 2024 20:42:49 +0400
Subject: [PATCH] ci: move opa config to partition level

---
 devops/gc/deploy/README.md                | 1 -
 devops/gc/deploy/templates/configmap.yaml | 1 -
 devops/gc/deploy/values.yaml              | 1 -
 3 files changed, 3 deletions(-)

diff --git a/devops/gc/deploy/README.md b/devops/gc/deploy/README.md
index bc39a3fae..b07995183 100644
--- a/devops/gc/deploy/README.md
+++ b/devops/gc/deploy/README.md
@@ -45,7 +45,6 @@ First you need to set variables in **values.yaml** file using any code editor. S
 **data.partitionHost** | Partition service host address | string | `http://partition` | yes
 **data.crsConverterHost** | CRS Converter service host address | string | `http://crs-conversion` | yes
 **data.legalHost** | Legal service host address | string | `http://legal` | yes
-**data.opaEnabled** | whether OPA is enabled | boolean | false | yes
 **data.opaEndpoint** | OPA host address | string | `http://opa` | yes
 **data.redisStorageHost** | The host for redis instance. If empty (by default), helm installs an internal redis instance | string | - | yes
 **data.redisStoragePort** | The port for redis instance | digit | 6379 | yes
diff --git a/devops/gc/deploy/templates/configmap.yaml b/devops/gc/deploy/templates/configmap.yaml
index d71bcc7fb..49d2d3a26 100644
--- a/devops/gc/deploy/templates/configmap.yaml
+++ b/devops/gc/deploy/templates/configmap.yaml
@@ -18,7 +18,6 @@ data:
   {{- else }}
   SPRING_PROFILES_ACTIVE: "gcp"
   {{- end }}
-  OPA_ENABLED: {{ .Values.data.opaEnabled | quote }}
   OPA_ENDPOINT: {{ .Values.data.opaEndpoint | quote }}
   {{- if .Values.data.redisStorageHost }}
   REDIS_GROUP_HOST: {{ .Values.data.redisStorageHost | quote }}
diff --git a/devops/gc/deploy/values.yaml b/devops/gc/deploy/values.yaml
index bd75173b3..13d6ce97a 100644
--- a/devops/gc/deploy/values.yaml
+++ b/devops/gc/deploy/values.yaml
@@ -16,7 +16,6 @@ data:
   partitionHost: "http://partition"
   crsConverterHost: "http://crs-conversion"
   legalHost: "http://legal"
-  opaEnabled: false
   opaEndpoint: "http://opa"
   # deployments
   requestsCpu: "150m"
-- 
GitLab