diff --git a/devops/gc/deploy/README.md b/devops/gc/deploy/README.md index 98ce0c39f088be5abac2163b7a75e1cd669a36dd..5f1f39c1a8e3deb5ed5eeb33573ec3eed3465523 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 337f5c3454891175603872d1d8e19f8a12d742e7..40b2e64415289ba987ddf3b07c4fe40749441cc2 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 509f93d3dfa0018d82ea12e57cce5a64c13d9d5f..c1197cb8b60d37620a8b0bc3cd263f939c7b5713 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 28d8cc2b79ce5ba74d54855f112ae222960c1aed..3100aa5ff4c26d84339730dff7e6169b2d9a23c7 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: