From fade80773779fd74f5e142b821feaf3f150af620 Mon Sep 17 00:00:00 2001 From: k8spacket Date: Thu, 7 Nov 2024 19:48:53 +0100 Subject: [PATCH] Use K8S client informers & Logger level from values (#39) --- charts/k8spacket/Chart.yaml | 4 ++-- charts/k8spacket/templates/daemonset.yaml | 2 ++ charts/k8spacket/values.yaml | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/charts/k8spacket/Chart.yaml b/charts/k8spacket/Chart.yaml index 15531cb..93b633c 100644 --- a/charts/k8spacket/Chart.yaml +++ b/charts/k8spacket/Chart.yaml @@ -5,5 +5,5 @@ description: A Helm chart for k8spacket tool maintainers: - name: k8spacket email: k8spacket@gmail.com -version: 2.1.1 -appVersion: 2.1.1 \ No newline at end of file +version: 2.1.2 +appVersion: 2.1.2 \ No newline at end of file diff --git a/charts/k8spacket/templates/daemonset.yaml b/charts/k8spacket/templates/daemonset.yaml index 6560632..076e352 100644 --- a/charts/k8spacket/templates/daemonset.yaml +++ b/charts/k8spacket/templates/daemonset.yaml @@ -89,6 +89,8 @@ spec: value: {{ .Values.k8sPacket.tls.certificate.cache.ttl }} - name: K8S_PACKET_TLS_METRICS_ENABLED value: {{ .Values.k8sPacket.tls.metrics.enabled | quote }} + - name: LOG_LEVEL + value: {{ .Values.k8sPacket.logger.level | quote }} volumeMounts: - mountPath: /sys/kernel/tracing name: tracing diff --git a/charts/k8spacket/values.yaml b/charts/k8spacket/values.yaml index e824ea2..69df121 100644 --- a/charts/k8spacket/values.yaml +++ b/charts/k8spacket/values.yaml @@ -122,6 +122,9 @@ k8sPacket: metrics: ## Enabled/disabled exposing TLS Prometheus metrics enabled: true + logger: + ## Logger level. Available values: DEBUG,INFO,WARN,ERROR + level: INFO volumes: ## path to kernel tracing folder on an instance ## default to '/sys/kernel/tracing'