Skip to content
Snippets Groups Projects
Commit e1b77bb8 authored by Vadzim Beuzo  [EPAM / GCP]'s avatar Vadzim Beuzo [EPAM / GCP] Committed by Oleksandr Kosse (EPAM)
Browse files

GONRG-10103: add global log level to services

parent 7f6a2ad1
No related branches found
No related tags found
1 merge request!698GONRG-10103: add global log level to services
......@@ -77,7 +77,7 @@ The following software have components provided under the terms of this license:
- Byte Buddy Java agent (from https://repo1.maven.org/maven2/net/bytebuddy/byte-buddy-agent)
- ClassMate (from http://github.com/cowtowncoder/java-classmate)
- Cloud Key Management Service (KMS) API v1-rev20240801-2.0.0 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-cloudkms)
- Cloud Storage JSON API v1-rev20240809-2.0.0 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-storage)
- Cloud Storage JSON API v1-rev20240819-2.0.0 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-storage)
- Collections (from https://repo1.maven.org/maven2/commons-collections/commons-collections)
- Commons Digester (from http://commons.apache.org/digester/)
- Converter: Jackson (from https://github.com/square/retrofit, https://repo1.maven.org/maven2/com/squareup/retrofit2/converter-jackson)
......
......@@ -31,33 +31,34 @@ First you need to set variables in **values.yaml** file using any code editor. S
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**global.domain** | your domain for the external endpoint, ex `example.com` | string | - | yes
**global.onPremEnabled** | whether on-prem is enabled | boolean | false | yes
**global.limitsEnabled** | whether CPU and memory limits are enabled | boolean | true | yes
**global.onPremEnabled** | whether on-prem is enabled | boolean | `false` | yes
**global.limitsEnabled** | whether CPU and memory limits are enabled | boolean | `true` | yes
**global.logLevel** | severity of logging level | string | `ERROR` | yes
### Configmap variables
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**data.logLevel** | logging severity level for this service only | string | - | yes, only if differs from the `global.logLevel`
**data.dataPartitionId** | data partition id | string | - | yes
**data.entitlementsHost** | entitlements host | string | "http://entitlements" | yes
**data.javaOptions** | java options | string | "-Xms512M -Xmx1024M -XX:+UseG1GC -XX:+UseStringDeduplication -XX:InitiatingHeapOccupancyPercent=45" | yes
**data.logLevel** | logging level | string | INFO | yes
**data.partitionHost** | partition host | string | "http://partition" | yes
**data.schemaTopicName** | topic for schema changes events | string | "schema-changed" | yes
**data.entitlementsHost** | entitlements host | string | `http://entitlements` | yes
**data.javaOptions** | java options | string | `-Xms512M -Xmx1024M -XX:+UseG1GC -XX:+UseStringDeduplication -XX:InitiatingHeapOccupancyPercent=45` | yes
**data.partitionHost** | partition host | string | `http://partition` | yes
**data.schemaTopicName** | topic for schema changes events | string | `schema-changed` | yes
### Deployment variables
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**data.requestsCpu** | amount of requested CPU | string | 220m | yes
**data.requestsMemory** | amount of requested memory| string | 1.7G | yes
**data.limitsCpu** | CPU limit | string | 1 | only if `global.limitsEnabled` is true
**data.limitsMemory** | memory limit | string | 1.5G | only if `global.limitsEnabled` is true
**data.requestsCpu** | amount of requested CPU | string | `220m` | yes
**data.requestsMemory** | amount of requested memory| string | `1.7G` | yes
**data.limitsCpu** | CPU limit | string | `1` | only if `global.limitsEnabled` is true
**data.limitsMemory** | memory limit | string | `1.5G` | only if `global.limitsEnabled` is true
**data.bootstrapImage** | bootstrap image | string | - | yes
**data.bootstrapServiceAccountName** | bootstrap service account name | string | - | yes
**data.image** | service image | string | - | yes
**data.imagePullPolicy** | when to pull image | string | IfNotPresent | yes
**data.serviceAccountName** | name of your service account | string | schema | yes
**data.imagePullPolicy** | when to pull image | string | `IfNotPresent` | yes
**data.serviceAccountName** | name of your service account | string | `schema` | yes
### Configuration variables
......@@ -76,11 +77,11 @@ First you need to set variables in **values.yaml** file using any code editor. S
| Name | Description | Type | Default |Required |
|------|-------------|------|---------|---------|
**data.datastoreKind** | Datastore Kind for Schema | string | "system_schema_osm" | yes
**data.datastoreNamespace** | Datastore Namespace for Schema | string | "dataecosystem" | yes
**data.enableCleanup** | whether cleanup is enabled | boolean | false | yes
**data.datastoreKind** | Datastore Kind for Schema | string | `system_schema_osm` | yes
**data.datastoreNamespace** | Datastore Namespace for Schema | string | `dataecosystem` | yes
**data.enableCleanup** | whether cleanup is enabled | boolean | `false` | yes
**data.schemaBucket** | name of the bucket with schemas | string | - | yes
**data.schemaHost** | schema host | string | "http://schema" | yes
**data.schemaHost** | schema host | string | `http://schema` | yes
### Istio variables
......
......@@ -11,7 +11,7 @@ data:
{{- else }}
{{ .Values.global.dataPartitionId | quote }}
{{- end }}
LOG_LEVEL: {{ .Values.data.logLevel | quote }}
LOG_LEVEL: {{ .Values.data.logLevel | default .Values.global.logLevel | quote }}
ENTITLEMENTS_HOST: {{ .Values.data.entitlementsHost | quote }}
SCHEMA_CHANGED_TOPIC_NAME: {{ .Values.data.schemaTopicName | quote }}
SCHEMA_CHANGED_MESSAGING_ENABLED: {{ .Values.data.schemaChangedMessagingEnabled | quote }}
......
......@@ -3,12 +3,13 @@ global:
onPremEnabled: false
limitsEnabled: true
dataPartitionId: ""
logLevel: "ERROR"
data:
#Configmaps
entitlementsHost: "http://entitlements"
javaOptions: "-Xms512M -Xmx1024M -XX:+UseG1GC -XX:+UseStringDeduplication -XX:InitiatingHeapOccupancyPercent=45"
logLevel: "ERROR"
logLevel: ""
partitionHost: "http://partition"
schemaTopicName: "schema-changed"
schemaChangedMessagingEnabled: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment