From 34617072b21b8d10e81a346c42fa3764ecd53d17 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez-Fernandez Date: Wed, 21 Aug 2024 13:13:34 -0700 Subject: [PATCH] feat(helm): allow to set log level in operator Signed-off-by: Carlos Rodriguez-Fernandez --- deployments/helm/KubeArmorOperator/Chart.yaml | 4 ++-- deployments/helm/KubeArmorOperator/templates/deployment.yaml | 1 + deployments/helm/KubeArmorOperator/values.yaml | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/deployments/helm/KubeArmorOperator/Chart.yaml b/deployments/helm/KubeArmorOperator/Chart.yaml index aa690367a5..9d1fa1683a 100644 --- a/deployments/helm/KubeArmorOperator/Chart.yaml +++ b/deployments/helm/KubeArmorOperator/Chart.yaml @@ -13,9 +13,9 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: v1.4.0 +version: v1.4.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: v1.4.0 +appVersion: v1.4.2 diff --git a/deployments/helm/KubeArmorOperator/templates/deployment.yaml b/deployments/helm/KubeArmorOperator/templates/deployment.yaml index 24f397ba8d..cd31b479b1 100644 --- a/deployments/helm/KubeArmorOperator/templates/deployment.yaml +++ b/deployments/helm/KubeArmorOperator/templates/deployment.yaml @@ -32,6 +32,7 @@ spec: # initDeploy flag is only supported from v1.4.0 args: - --initDeploy={{.Values.kubearmorOperator.initDeploy }} + - --loglevel={{.Values.kubearmorOperator.logLevel}} {{- end }} serviceAccountName: {{ .Values.kubearmorOperator.name }} diff --git a/deployments/helm/KubeArmorOperator/values.yaml b/deployments/helm/KubeArmorOperator/values.yaml index a6efab57b6..12ec76466c 100644 --- a/deployments/helm/KubeArmorOperator/values.yaml +++ b/deployments/helm/KubeArmorOperator/values.yaml @@ -37,6 +37,8 @@ kubearmorOperator: tag: "" imagePullPolicy: IfNotPresent initDeploy: true + logLevel: info + kubearmorConfig: defaultCapabilitiesPosture: audit