From 7b32a3388545d396016db1f9ffb1f94f47749ac7 Mon Sep 17 00:00:00 2001 From: cccs-nik <68961854+cccs-nik@users.noreply.github.com> Date: Mon, 22 Apr 2024 10:44:51 -0400 Subject: [PATCH] adjust logging level of any package (#203) --- valeriano-manassero/trino/Chart.yaml | 4 ++-- valeriano-manassero/trino/README.md | 3 ++- .../trino/templates/configmap-coordinator.yaml | 3 +++ valeriano-manassero/trino/templates/configmap-worker.yaml | 3 +++ valeriano-manassero/trino/values.yaml | 4 ++++ 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/valeriano-manassero/trino/Chart.yaml b/valeriano-manassero/trino/Chart.yaml index 88e9bdc..ce82f37 100644 --- a/valeriano-manassero/trino/Chart.yaml +++ b/valeriano-manassero/trino/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "433" description: High performance, distributed SQL query engine for big data name: trino -version: 9.2.0 +version: 9.3.0 kubeVersion: ">= 1.24.0-0 < 1.29.0-0" home: https://trino.io icon: https://trino.io/assets/images/trino-logo/trino-ko_tiny-alt.svg @@ -27,4 +27,4 @@ keywords: annotations: artifacthub.io/changes: | - kind: changed - description: Add the capability to configure extra volumes and extra volume mounts. + description: Add ability to adjust logging level of any package. diff --git a/valeriano-manassero/trino/README.md b/valeriano-manassero/trino/README.md index 0c54285..ff995b0 100644 --- a/valeriano-manassero/trino/README.md +++ b/valeriano-manassero/trino/README.md @@ -1,6 +1,6 @@ # trino -![Version: 9.2.0](https://img.shields.io/badge/Version-9.2.0-informational?style=flat-square) ![AppVersion: 433](https://img.shields.io/badge/AppVersion-433-informational?style=flat-square) +![Version: 9.3.0](https://img.shields.io/badge/Version-9.3.0-informational?style=flat-square) ![AppVersion: 433](https://img.shields.io/badge/AppVersion-433-informational?style=flat-square) High performance, distributed SQL query engine for big data @@ -55,6 +55,7 @@ Kubernetes: `>= 1.24.0-0 < 1.29.0-0` | config.general.httpsServer.keystore.path | string | `"/usr/local/certs/clustercoord.pem"` | | | config.general.httpsServer.port | int | `8443` | | | config.general.internalCommunicationSharedSecret | string | `"some-secret"` | | +| config.general.log.trino.extraLevels | object | `{}` | | | config.general.log.trino.level | string | `"INFO"` | | | config.general.node.dataDir | string | `"/data/trino"` | | | config.general.node.environment | string | `"production"` | | diff --git a/valeriano-manassero/trino/templates/configmap-coordinator.yaml b/valeriano-manassero/trino/templates/configmap-coordinator.yaml index 934f68b..b106792 100644 --- a/valeriano-manassero/trino/templates/configmap-coordinator.yaml +++ b/valeriano-manassero/trino/templates/configmap-coordinator.yaml @@ -66,6 +66,9 @@ data: log.properties: | io.trino={{ .Values.config.general.log.trino.level }} + {{- range $package, $level := .Values.config.general.log.trino.extraLevels }} + {{ $package }}={{ $level }} + {{- end }} {{ if .Values.config.general.authenticationType }}{{ if contains "PASSWORD" .Values.config.general.authenticationType }} password-authenticator.properties: | diff --git a/valeriano-manassero/trino/templates/configmap-worker.yaml b/valeriano-manassero/trino/templates/configmap-worker.yaml index 035cb51..61fba94 100644 --- a/valeriano-manassero/trino/templates/configmap-worker.yaml +++ b/valeriano-manassero/trino/templates/configmap-worker.yaml @@ -51,6 +51,9 @@ data: log.properties: | io.trino={{ .Values.config.general.log.trino.level }} + {{- range $package, $level := .Values.config.general.log.trino.extraLevels }} + {{ $package }}={{ $level }} + {{- end }} {{- if .Values.faultTolerance.enabled }}{{- if not .Values.faultTolerance.configAsSecret }} exchange-manager.properties: | diff --git a/valeriano-manassero/trino/values.yaml b/valeriano-manassero/trino/values.yaml index fd8894b..a685614 100644 --- a/valeriano-manassero/trino/values.yaml +++ b/valeriano-manassero/trino/values.yaml @@ -30,6 +30,10 @@ config: log: trino: level: INFO + extraLevels: {} + # For example: + # extraLevels: + # org.apache.kafka: WARN path: /etc/trino http: port: 8080