From 81ba53787a14db112de7ec31d0ef2016795018da Mon Sep 17 00:00:00 2001 From: andresanaya21 Date: Fri, 28 Jun 2024 16:56:10 +0200 Subject: [PATCH 1/7] mongodb log level --- helm/capif/charts/mongo/templates/deployment.yaml | 8 ++++++++ helm/capif/charts/mongo/values.yaml | 1 + helm/vault-job/vault-job.yaml | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/helm/capif/charts/mongo/templates/deployment.yaml b/helm/capif/charts/mongo/templates/deployment.yaml index 80cedad..0066ead 100644 --- a/helm/capif/charts/mongo/templates/deployment.yaml +++ b/helm/capif/charts/mongo/templates/deployment.yaml @@ -40,11 +40,19 @@ spec: - name: http containerPort: {{ .Values.service.port }} protocol: TCP + args: + - mongod + - "--setParameter" + - "diagnosticDataCollectionEnabled=true" + - "--setParameter" + - "logComponentVerbosity={default: {verbosity: ${MONGODB_LOG_LEVEL}}}" env: - name: MONGO_INITDB_ROOT_PASSWORD value: {{ quote .Values.env.mongoInitdbRootPassword }} - name: MONGO_INITDB_ROOT_USERNAME value: {{ quote .Values.env.mongoInitdbRootUsername }} + - name: MONGODB_LOG_LEVEL + value: {{ .Values.env.mongoLeveLog }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/mongo/values.yaml b/helm/capif/charts/mongo/values.yaml index 53b8cf5..a226dba 100644 --- a/helm/capif/charts/mongo/values.yaml +++ b/helm/capif/charts/mongo/values.yaml @@ -17,6 +17,7 @@ fullnameOverride: "" env: mongoInitdbRootPassword: example mongoInitdbRootUsername: root + mongoLeveLog: 0 serviceAccount: # Specifies whether a service account should be created diff --git a/helm/vault-job/vault-job.yaml b/helm/vault-job/vault-job.yaml index 84b247f..a68f2f9 100644 --- a/helm/vault-job/vault-job.yaml +++ b/helm/vault-job/vault-job.yaml @@ -76,7 +76,7 @@ data: vault write pki_int/intermediate/set-signed certificate=@capif_intermediate.cert.pem #Crear rol en Vault - vault write pki_int/roles/my-ca use_csr_common_name=true require_cn=false allowed_domains="*" allow_any_name=true allow_bare_domains=true allow_glob_domains=true allow_subdomains=true max_ttl=4300h ttl=4300h + vault write pki_int/roles/my-ca use_csr_common_name=false require_cn=false allowed_domains="*" allow_any_name=true allow_bare_domains=true allow_glob_domains=true allow_subdomains=true max_ttl=4300h ttl=4300h # Emitir un certificado firmado por la CA intermedia # vault write -format=json pki_int/issue/my-ca \ -- GitLab From 4bd20e571e0501cc165a38815d939051cdc283ca Mon Sep 17 00:00:00 2001 From: andresanaya21 Date: Fri, 28 Jun 2024 17:00:27 +0200 Subject: [PATCH 2/7] mongo log level --- helm/capif/charts/mongo/values.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/helm/capif/charts/mongo/values.yaml b/helm/capif/charts/mongo/values.yaml index a226dba..81281b6 100644 --- a/helm/capif/charts/mongo/values.yaml +++ b/helm/capif/charts/mongo/values.yaml @@ -17,6 +17,7 @@ fullnameOverride: "" env: mongoInitdbRootPassword: example mongoInitdbRootUsername: root + # log level host 0-5. 0 min log level. 5 the max log level mongoLeveLog: 0 serviceAccount: -- GitLab From 51f71e97e658420e49f1609a92144eff5b9bc483 Mon Sep 17 00:00:00 2001 From: andresanaya21 Date: Fri, 28 Jun 2024 17:13:44 +0200 Subject: [PATCH 3/7] CD_ENV_NAME --- helm/capif/charts/mongo/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/capif/charts/mongo/values.yaml b/helm/capif/charts/mongo/values.yaml index 81281b6..4a14c6c 100644 --- a/helm/capif/charts/mongo/values.yaml +++ b/helm/capif/charts/mongo/values.yaml @@ -115,4 +115,4 @@ nodeSelector: {} tolerations: [] -affinity: {} +affinity: {} \ No newline at end of file -- GitLab From d5ffca5ed857653e83d9a3868ef340fb1fe9db24 Mon Sep 17 00:00:00 2001 From: andresanaya21 Date: Fri, 28 Jun 2024 17:20:15 +0200 Subject: [PATCH 4/7] mongoLeveLog --- helm/capif/charts/mongo/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/capif/charts/mongo/templates/deployment.yaml b/helm/capif/charts/mongo/templates/deployment.yaml index 0066ead..6c8d480 100644 --- a/helm/capif/charts/mongo/templates/deployment.yaml +++ b/helm/capif/charts/mongo/templates/deployment.yaml @@ -52,7 +52,7 @@ spec: - name: MONGO_INITDB_ROOT_USERNAME value: {{ quote .Values.env.mongoInitdbRootUsername }} - name: MONGODB_LOG_LEVEL - value: {{ .Values.env.mongoLeveLog }} + value: {{ .Values.env.mongoLeveLog | quote }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: -- GitLab From 2655e28d5042332f6db24ffe676721a06a923836 Mon Sep 17 00:00:00 2001 From: andresanaya21 Date: Fri, 28 Jun 2024 17:29:52 +0200 Subject: [PATCH 5/7] mongoLeveLog --- helm/capif/charts/mongo/templates/deployment.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/helm/capif/charts/mongo/templates/deployment.yaml b/helm/capif/charts/mongo/templates/deployment.yaml index 6c8d480..efe4e8e 100644 --- a/helm/capif/charts/mongo/templates/deployment.yaml +++ b/helm/capif/charts/mongo/templates/deployment.yaml @@ -45,14 +45,12 @@ spec: - "--setParameter" - "diagnosticDataCollectionEnabled=true" - "--setParameter" - - "logComponentVerbosity={default: {verbosity: ${MONGODB_LOG_LEVEL}}}" + - "logComponentVerbosity={default: {verbosity: {{ .Values.env.mongoLeveLog }} }}" env: - name: MONGO_INITDB_ROOT_PASSWORD value: {{ quote .Values.env.mongoInitdbRootPassword }} - name: MONGO_INITDB_ROOT_USERNAME value: {{ quote .Values.env.mongoInitdbRootUsername }} - - name: MONGODB_LOG_LEVEL - value: {{ .Values.env.mongoLeveLog | quote }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: -- GitLab From 993260975be4b542c1899a730d6aef478c6837bb Mon Sep 17 00:00:00 2001 From: andresanaya21 Date: Fri, 28 Jun 2024 18:07:25 +0200 Subject: [PATCH 6/7] logLevel ocf core --- helm/capif/charts/mock-server/templates/deployment.yaml | 3 +++ helm/capif/charts/mock-server/values.yaml | 3 +++ helm/capif/charts/mongo/templates/deployment.yaml | 6 ------ helm/capif/charts/mongo/values.yaml | 2 -- .../ocf-access-control-policy/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-access-control-policy/values.yaml | 1 + .../ocf-api-invocation-logs/templates/deployment.yaml | 4 +++- helm/capif/charts/ocf-api-invocation-logs/values.yaml | 1 + .../ocf-api-invoker-management/templates/deployment.yaml | 4 +++- helm/capif/charts/ocf-api-invoker-management/values.yaml | 1 + .../ocf-api-provider-management/templates/deployment.yaml | 4 +++- helm/capif/charts/ocf-api-provider-management/values.yaml | 1 + .../charts/ocf-auditing-api-logs/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-auditing-api-logs/values.yaml | 1 + .../ocf-discover-service-api/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-discover-service-api/values.yaml | 1 + helm/capif/charts/ocf-events/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-events/values.yaml | 1 + helm/capif/charts/ocf-helper/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-helper/values.yaml | 3 ++- .../ocf-publish-service-api/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-publish-service-api/values.yaml | 1 + helm/capif/charts/ocf-register/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-register/values.yaml | 3 ++- .../capif/charts/ocf-routing-info/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-routing-info/values.yaml | 1 + helm/capif/charts/ocf-security/templates/deployment.yaml | 2 ++ helm/capif/charts/ocf-security/values.yaml | 1 + 28 files changed, 47 insertions(+), 13 deletions(-) diff --git a/helm/capif/charts/mock-server/templates/deployment.yaml b/helm/capif/charts/mock-server/templates/deployment.yaml index 89261d7..ea29ba9 100644 --- a/helm/capif/charts/mock-server/templates/deployment.yaml +++ b/helm/capif/charts/mock-server/templates/deployment.yaml @@ -41,6 +41,9 @@ spec: - name: http containerPort: {{ .Values.service.port }} protocol: TCP + env: + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/mock-server/values.yaml b/helm/capif/charts/mock-server/values.yaml index cd2dfc0..a34433a 100644 --- a/helm/capif/charts/mock-server/values.yaml +++ b/helm/capif/charts/mock-server/values.yaml @@ -16,6 +16,9 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +env: + logLevel: "INFO" + serviceAccount: # Specifies whether a service account should be created create: true diff --git a/helm/capif/charts/mongo/templates/deployment.yaml b/helm/capif/charts/mongo/templates/deployment.yaml index efe4e8e..80cedad 100644 --- a/helm/capif/charts/mongo/templates/deployment.yaml +++ b/helm/capif/charts/mongo/templates/deployment.yaml @@ -40,12 +40,6 @@ spec: - name: http containerPort: {{ .Values.service.port }} protocol: TCP - args: - - mongod - - "--setParameter" - - "diagnosticDataCollectionEnabled=true" - - "--setParameter" - - "logComponentVerbosity={default: {verbosity: {{ .Values.env.mongoLeveLog }} }}" env: - name: MONGO_INITDB_ROOT_PASSWORD value: {{ quote .Values.env.mongoInitdbRootPassword }} diff --git a/helm/capif/charts/mongo/values.yaml b/helm/capif/charts/mongo/values.yaml index 4a14c6c..38e4b9b 100644 --- a/helm/capif/charts/mongo/values.yaml +++ b/helm/capif/charts/mongo/values.yaml @@ -17,8 +17,6 @@ fullnameOverride: "" env: mongoInitdbRootPassword: example mongoInitdbRootUsername: root - # log level host 0-5. 0 min log level. 5 the max log level - mongoLeveLog: 0 serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-access-control-policy/templates/deployment.yaml b/helm/capif/charts/ocf-access-control-policy/templates/deployment.yaml index 3a8000f..987f209 100644 --- a/helm/capif/charts/ocf-access-control-policy/templates/deployment.yaml +++ b/helm/capif/charts/ocf-access-control-policy/templates/deployment.yaml @@ -43,6 +43,8 @@ spec: value: {{ quote .Values.env.capifHostname }} - name: MONITORING value: {{ quote .Values.env.monitoring }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-access-control-policy/values.yaml b/helm/capif/charts/ocf-access-control-policy/values.yaml index 2912e09..9184d26 100644 --- a/helm/capif/charts/ocf-access-control-policy/values.yaml +++ b/helm/capif/charts/ocf-access-control-policy/values.yaml @@ -17,6 +17,7 @@ fullnameOverride: "" env: capifHostname: my-capif.apps.ocp-epg.hi.inet monitoring: "true" + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-api-invocation-logs/templates/deployment.yaml b/helm/capif/charts/ocf-api-invocation-logs/templates/deployment.yaml index fc3ce11..b0262fe 100644 --- a/helm/capif/charts/ocf-api-invocation-logs/templates/deployment.yaml +++ b/helm/capif/charts/ocf-api-invocation-logs/templates/deployment.yaml @@ -49,7 +49,9 @@ spec: - name: VAULT_PORT value: {{ quote .Values.env.vaultPort }} - name: VAULT_ACCESS_TOKEN - value: {{ quote .Values.env.vaultAccessToken }} + value: {{ quote .Values.env.vaultAccessToken }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-api-invocation-logs/values.yaml b/helm/capif/charts/ocf-api-invocation-logs/values.yaml index 4c4431b..dc63d4b 100644 --- a/helm/capif/charts/ocf-api-invocation-logs/values.yaml +++ b/helm/capif/charts/ocf-api-invocation-logs/values.yaml @@ -22,6 +22,7 @@ env: vaultAccessToken: dev-only-token mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-api-invoker-management/templates/deployment.yaml b/helm/capif/charts/ocf-api-invoker-management/templates/deployment.yaml index c4fd0c9..5b210cb 100644 --- a/helm/capif/charts/ocf-api-invoker-management/templates/deployment.yaml +++ b/helm/capif/charts/ocf-api-invoker-management/templates/deployment.yaml @@ -47,7 +47,9 @@ spec: - name: VAULT_PORT value: {{ quote .Values.env.vaultPort }} - name: VAULT_ACCESS_TOKEN - value: {{ quote .Values.env.vaultAccessToken }} + value: {{ quote .Values.env.vaultAccessToken }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-api-invoker-management/values.yaml b/helm/capif/charts/ocf-api-invoker-management/values.yaml index a296a41..e832c7d 100644 --- a/helm/capif/charts/ocf-api-invoker-management/values.yaml +++ b/helm/capif/charts/ocf-api-invoker-management/values.yaml @@ -21,6 +21,7 @@ env: vaultAccessToken: dev-only-token mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" mongoRegister: mongoInitdbRootUsername: root mongoInitdbRootPassword: example diff --git a/helm/capif/charts/ocf-api-provider-management/templates/deployment.yaml b/helm/capif/charts/ocf-api-provider-management/templates/deployment.yaml index c5ff215..7f95b9d 100644 --- a/helm/capif/charts/ocf-api-provider-management/templates/deployment.yaml +++ b/helm/capif/charts/ocf-api-provider-management/templates/deployment.yaml @@ -47,7 +47,9 @@ spec: - name: VAULT_PORT value: {{ quote .Values.env.vaultPort }} - name: VAULT_ACCESS_TOKEN - value: {{ quote .Values.env.vaultAccessToken }} + value: {{ quote .Values.env.vaultAccessToken }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-api-provider-management/values.yaml b/helm/capif/charts/ocf-api-provider-management/values.yaml index 019b214..547bb05 100644 --- a/helm/capif/charts/ocf-api-provider-management/values.yaml +++ b/helm/capif/charts/ocf-api-provider-management/values.yaml @@ -21,6 +21,7 @@ env: vaultAccessToken: dev-only-token mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" mongoRegister: mongoInitdbRootUsername: root mongoInitdbRootPassword: example diff --git a/helm/capif/charts/ocf-auditing-api-logs/templates/deployment.yaml b/helm/capif/charts/ocf-auditing-api-logs/templates/deployment.yaml index 62cbf03..8248606 100644 --- a/helm/capif/charts/ocf-auditing-api-logs/templates/deployment.yaml +++ b/helm/capif/charts/ocf-auditing-api-logs/templates/deployment.yaml @@ -42,6 +42,8 @@ spec: env: - name: MONITORING value: {{ quote .Values.env.monitoring }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-auditing-api-logs/values.yaml b/helm/capif/charts/ocf-auditing-api-logs/values.yaml index 41e3d1f..859ba12 100644 --- a/helm/capif/charts/ocf-auditing-api-logs/values.yaml +++ b/helm/capif/charts/ocf-auditing-api-logs/values.yaml @@ -18,6 +18,7 @@ env: monitoring: "true" mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-discover-service-api/templates/deployment.yaml b/helm/capif/charts/ocf-discover-service-api/templates/deployment.yaml index 438b986..0c6bfb0 100644 --- a/helm/capif/charts/ocf-discover-service-api/templates/deployment.yaml +++ b/helm/capif/charts/ocf-discover-service-api/templates/deployment.yaml @@ -42,6 +42,8 @@ spec: env: - name: MONITORING value: {{ quote .Values.env.monitoring }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-discover-service-api/values.yaml b/helm/capif/charts/ocf-discover-service-api/values.yaml index b69232d..6aa8e61 100644 --- a/helm/capif/charts/ocf-discover-service-api/values.yaml +++ b/helm/capif/charts/ocf-discover-service-api/values.yaml @@ -18,6 +18,7 @@ env: monitoring: "true" mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-events/templates/deployment.yaml b/helm/capif/charts/ocf-events/templates/deployment.yaml index f94cc7b..50b58cc 100644 --- a/helm/capif/charts/ocf-events/templates/deployment.yaml +++ b/helm/capif/charts/ocf-events/templates/deployment.yaml @@ -42,6 +42,8 @@ spec: env: - name: MONITORING value: {{ quote .Values.env.monitoring }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-events/values.yaml b/helm/capif/charts/ocf-events/values.yaml index c600141..b3ca6b0 100644 --- a/helm/capif/charts/ocf-events/values.yaml +++ b/helm/capif/charts/ocf-events/values.yaml @@ -18,6 +18,7 @@ env: monitoring: "true" mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-helper/templates/deployment.yaml b/helm/capif/charts/ocf-helper/templates/deployment.yaml index 7c55930..16f43a0 100644 --- a/helm/capif/charts/ocf-helper/templates/deployment.yaml +++ b/helm/capif/charts/ocf-helper/templates/deployment.yaml @@ -58,6 +58,8 @@ spec: value: {{ quote .Values.env.vaultPort }} - name: VAULT_ACCESS_TOKEN value: {{ quote .Values.env.vaultAccessToken }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} {{- with .Values.volumes }} volumes: {{- toYaml . | nindent 8 }} diff --git a/helm/capif/charts/ocf-helper/values.yaml b/helm/capif/charts/ocf-helper/values.yaml index 36e0989..f9e35bd 100644 --- a/helm/capif/charts/ocf-helper/values.yaml +++ b/helm/capif/charts/ocf-helper/values.yaml @@ -22,7 +22,8 @@ env: mongoPort: 27017 capifHostname: capif mongoInitdbRootUsername: root - mongoInitdbRootPassword: example + mongoInitdbRootPassword: example + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-publish-service-api/templates/deployment.yaml b/helm/capif/charts/ocf-publish-service-api/templates/deployment.yaml index 49d9b2c..ceced65 100644 --- a/helm/capif/charts/ocf-publish-service-api/templates/deployment.yaml +++ b/helm/capif/charts/ocf-publish-service-api/templates/deployment.yaml @@ -42,6 +42,8 @@ spec: env: - name: MONITORING value: {{ quote .Values.env.monitoring }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-publish-service-api/values.yaml b/helm/capif/charts/ocf-publish-service-api/values.yaml index 4ab3c9c..ac32a98 100644 --- a/helm/capif/charts/ocf-publish-service-api/values.yaml +++ b/helm/capif/charts/ocf-publish-service-api/values.yaml @@ -18,6 +18,7 @@ env: monitoring: "true" mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-register/templates/deployment.yaml b/helm/capif/charts/ocf-register/templates/deployment.yaml index 5437dfc..0009f19 100644 --- a/helm/capif/charts/ocf-register/templates/deployment.yaml +++ b/helm/capif/charts/ocf-register/templates/deployment.yaml @@ -46,6 +46,8 @@ spec: value: {{ quote .Values.env.vaultPort }} - name: VAULT_ACCESS_TOKEN value: {{ quote .Values.env.vaultAccessToken }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-register/values.yaml b/helm/capif/charts/ocf-register/values.yaml index 5605ef8..ca8cfc3 100644 --- a/helm/capif/charts/ocf-register/values.yaml +++ b/helm/capif/charts/ocf-register/values.yaml @@ -21,7 +21,8 @@ env: vaultPort: 8200 vaultAccessToken: dev-only-token capifHostname: capif-test.example.int - + logLevel: "INFO" + serviceAccount: # Specifies whether a service account should be created create: true diff --git a/helm/capif/charts/ocf-routing-info/templates/deployment.yaml b/helm/capif/charts/ocf-routing-info/templates/deployment.yaml index 2e1abf1..214f38f 100644 --- a/helm/capif/charts/ocf-routing-info/templates/deployment.yaml +++ b/helm/capif/charts/ocf-routing-info/templates/deployment.yaml @@ -41,6 +41,8 @@ spec: env: - name: MONITORING value: {{ quote .Values.env.monitoring }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-routing-info/values.yaml b/helm/capif/charts/ocf-routing-info/values.yaml index 8ba779c..d6c6a3d 100644 --- a/helm/capif/charts/ocf-routing-info/values.yaml +++ b/helm/capif/charts/ocf-routing-info/values.yaml @@ -16,6 +16,7 @@ fullnameOverride: "" env: monitoring: "true" + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created diff --git a/helm/capif/charts/ocf-security/templates/deployment.yaml b/helm/capif/charts/ocf-security/templates/deployment.yaml index 44bd7fa..48ab764 100644 --- a/helm/capif/charts/ocf-security/templates/deployment.yaml +++ b/helm/capif/charts/ocf-security/templates/deployment.yaml @@ -50,6 +50,8 @@ spec: value: {{ quote .Values.env.vaultPort }} - name: VAULT_ACCESS_TOKEN value: {{ quote .Values.env.vaultAccessToken }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/ocf-security/values.yaml b/helm/capif/charts/ocf-security/values.yaml index 37b57c7..2be4288 100644 --- a/helm/capif/charts/ocf-security/values.yaml +++ b/helm/capif/charts/ocf-security/values.yaml @@ -22,6 +22,7 @@ env: vaultAccessToken: dev-only-token mongoInitdbRootUsername: root mongoInitdbRootPassword: example + logLevel: "INFO" serviceAccount: # Specifies whether a service account should be created -- GitLab From 21b74a57ffaa28ccb7364412951290f1fe700753 Mon Sep 17 00:00:00 2001 From: andresanaya21 Date: Mon, 1 Jul 2024 08:51:36 +0200 Subject: [PATCH 7/7] nginx.env.logLevel --- helm/capif/charts/nginx/templates/deployment.yaml | 2 ++ helm/capif/charts/nginx/values.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/helm/capif/charts/nginx/templates/deployment.yaml b/helm/capif/charts/nginx/templates/deployment.yaml index a5cd26c..221ebfd 100644 --- a/helm/capif/charts/nginx/templates/deployment.yaml +++ b/helm/capif/charts/nginx/templates/deployment.yaml @@ -48,6 +48,8 @@ spec: value: {{ quote .Values.env.vaultPort }} - name: VAULT_ACCESS_TOKEN value: {{ quote .Values.env.vaultAccessToken }} + - name: LOG_LEVEL + value: {{ quote .Values.env.logLevel }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/capif/charts/nginx/values.yaml b/helm/capif/charts/nginx/values.yaml index e3ba001..db0541e 100644 --- a/helm/capif/charts/nginx/values.yaml +++ b/helm/capif/charts/nginx/values.yaml @@ -19,6 +19,7 @@ env: vaultHostname: vault-internal.mon.svc.cluster.local vaultPort: 8200 vaultAccessToken: dev-only-token + logLevel: "info" serviceAccount: # Specifies whether a service account should be created -- GitLab