From 0bcedd4603de7b59a1f969842b9cef20564dffcf Mon Sep 17 00:00:00 2001 From: Erwan Miran Date: Tue, 2 Jul 2024 16:14:06 +0200 Subject: [PATCH] Make local_volume_provisioner log level configurable (#11336) --- .../local_volume_provisioner/defaults/main.yml | 1 + .../templates/local-volume-provisioner-ds.yml.j2 | 2 ++ 2 files changed, 3 insertions(+) diff --git a/roles/kubernetes-apps/external_provisioner/local_volume_provisioner/defaults/main.yml b/roles/kubernetes-apps/external_provisioner/local_volume_provisioner/defaults/main.yml index 38afefb2c..e9c5f747f 100644 --- a/roles/kubernetes-apps/external_provisioner/local_volume_provisioner/defaults/main.yml +++ b/roles/kubernetes-apps/external_provisioner/local_volume_provisioner/defaults/main.yml @@ -18,3 +18,4 @@ local_volume_provisioner_storage_classes: | "fs_type": "ext4" } } +local_volume_provisioner_log_level: 2 diff --git a/roles/kubernetes-apps/external_provisioner/local_volume_provisioner/templates/local-volume-provisioner-ds.yml.j2 b/roles/kubernetes-apps/external_provisioner/local_volume_provisioner/templates/local-volume-provisioner-ds.yml.j2 index 90a473090..87385fcfe 100644 --- a/roles/kubernetes-apps/external_provisioner/local_volume_provisioner/templates/local-volume-provisioner-ds.yml.j2 +++ b/roles/kubernetes-apps/external_provisioner/local_volume_provisioner/templates/local-volume-provisioner-ds.yml.j2 @@ -30,6 +30,8 @@ spec: - name: provisioner image: {{ local_volume_provisioner_image_repo }}:{{ local_volume_provisioner_image_tag }} imagePullPolicy: {{ k8s_image_pull_policy }} + args: + - "-v={{ local_volume_provisioner_log_level }}" securityContext: privileged: true env: