From 73ea89811a2fbc404ace315e21e11d131c41981b Mon Sep 17 00:00:00 2001 From: "Andrei Skorkin [EPAM / GCP]" <andrei_skorkin@epam.com> Date: Fri, 9 Jun 2023 09:07:23 +0000 Subject: [PATCH] dataBootstrapEnabled for legal and schema (GONRG-7224) --- devops/gc/deploy/README.md | 14 +++++++------- .../gc/deploy/templates/bootstrap-configmap.yaml | 2 +- .../gc/deploy/templates/bootstrap-deployment.yaml | 2 +- devops/gc/deploy/values.yaml | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/devops/gc/deploy/README.md b/devops/gc/deploy/README.md index 98ce0c39f..5f1f39c1a 100644 --- a/devops/gc/deploy/README.md +++ b/devops/gc/deploy/README.md @@ -32,6 +32,7 @@ First you need to set variables in **values.yaml** file using any code editor. S |------|-------------|------|---------|---------| **global.domain** | your domain for the external endpoint, ex `example.com` | string | - | yes **global.onPremEnabled** | whether on-prem is enabled | boolean | false | yes +**global.dataBootstrapEnabled** | whether storage bootstrap is enabled | boolean | false | yes ### Configmap variables @@ -47,9 +48,9 @@ First you need to set variables in **values.yaml** file using any code editor. S **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.storageHost** | Storage service host address | string | `http://storage` | only if `conf.bootstrapEnabled` is true -**data.defaultLegalTag** | Name of the previously created legal tag (without partition part) | string | `default-data-tag` | only if `conf.bootstrapEnabled` is true -**data.dataPartitionId** | Data partition id | string | - | only if `conf.bootstrapEnabled` is true +**data.storageHost** | Storage service host address | string | `http://storage` | only if `global.dataBootstrapEnabled` is true +**data.defaultLegalTag** | Name of the previously created legal tag (without partition part) | string | `default-data-tag` | only if `global.dataBootstrapEnabled` is true +**data.dataPartitionId** | Data partition id | string | - | only if `global.dataBootstrapEnabled` is true **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 @@ -64,8 +65,8 @@ First you need to set variables in **values.yaml** file using any code editor. S **data.image** | path to the image in a registry | string | - | yes **data.imagePullPolicy** | when to pull the image | string | `IfNotPresent` | yes **data.serviceAccountName** | name of kubernetes service account | string | `storage` | yes -**data.bootstrapImage** | path to the bootstrap image in a registry | string | - | only if `conf.bootstrapEnabled` is true -**data.bootstrapServiceAccountName** | name of kubernetes service account that will be used for bootstrap | string | - | only if `conf.bootstrapEnabled` is true +**data.bootstrapImage** | path to the bootstrap image in a registry | string | - | only if `global.dataBootstrapEnabled` is true +**data.bootstrapServiceAccountName** | name of kubernetes service account that will be used for bootstrap | string | - | only if `global.dataBootstrapEnabled` is true **data.redisImage** | service image | string | `redis:7` | yes ### Configuration variables @@ -78,9 +79,8 @@ First you need to set variables in **values.yaml** file using any code editor. S **conf.postgresSecretName** | secret for postgres | string | `storage-postgres-secret` | yes **conf.rabbitmqSecretName** | secret for rabbitmq | string | `rabbitmq-secret` | yes **conf.storageRedisSecretName** | secret for redis that contains redis password with REDIS_PASSWORD key | string | `storage-redis-secret` | yes -**conf.bootstrapSecretName** | secret for bootstrap to access openid provider | string | `datafier-secret` | only if `conf.bootstrapEnabled` is true +**conf.bootstrapSecretName** | secret for bootstrap to access openid provider | string | `datafier-secret` | only if `global.dataBootstrapEnabled` is true **conf.replicas** | Number of replicas | integer | 3 | yes -**conf.bootstrapEnabled** | whether storage bootstrap is enabled | boolean | false | yes ### Istio variables diff --git a/devops/gc/deploy/templates/bootstrap-configmap.yaml b/devops/gc/deploy/templates/bootstrap-configmap.yaml index 337f5c345..40b2e6441 100644 --- a/devops/gc/deploy/templates/bootstrap-configmap.yaml +++ b/devops/gc/deploy/templates/bootstrap-configmap.yaml @@ -1,4 +1,4 @@ -{{- if .Values.conf.bootstrapEnabled }} +{{- if .Values.global.dataBootstrapEnabled }} apiVersion: v1 kind: ConfigMap metadata: diff --git a/devops/gc/deploy/templates/bootstrap-deployment.yaml b/devops/gc/deploy/templates/bootstrap-deployment.yaml index 509f93d3d..c1197cb8b 100644 --- a/devops/gc/deploy/templates/bootstrap-deployment.yaml +++ b/devops/gc/deploy/templates/bootstrap-deployment.yaml @@ -1,4 +1,4 @@ -{{- if .Values.conf.bootstrapEnabled }} +{{- if .Values.global.dataBootstrapEnabled }} apiVersion: apps/v1 kind: Deployment metadata: diff --git a/devops/gc/deploy/values.yaml b/devops/gc/deploy/values.yaml index 28d8cc2b7..3100aa5ff 100644 --- a/devops/gc/deploy/values.yaml +++ b/devops/gc/deploy/values.yaml @@ -5,6 +5,7 @@ global: domain: "" onPremEnabled: false + dataBootstrapEnabled: false data: # configmaps @@ -44,7 +45,6 @@ conf: rabbitmqSecretName: "rabbitmq-secret" bootstrapSecretName: "datafier-secret" replicas: 3 - bootstrapEnabled: false storageRedisSecretName: "storage-redis-secret" istio: -- GitLab