From b2706adf84ecc139bcbd6a14ce52146ddb7ba53c Mon Sep 17 00:00:00 2001 From: Francesco Romani Date: Thu, 6 Apr 2023 12:36:34 +0200 Subject: [PATCH] rte: always mount kubelet config We need to always mount the kubelet config volume on kubernetes, even if notification is disabled. Notification enablement should only control the RTE option. Signed-off-by: Francesco Romani --- pkg/objectupdate/rte/rte.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkg/objectupdate/rte/rte.go b/pkg/objectupdate/rte/rte.go index 637afc23..53068568 100644 --- a/pkg/objectupdate/rte/rte.go +++ b/pkg/objectupdate/rte/rte.go @@ -116,13 +116,11 @@ func DaemonSet(ds *appsv1.DaemonSet, plat platform.Platform, configMapName strin }, }, }) - if opts.NotificationEnable { - rteContainerVolumeMounts = append(rteContainerVolumeMounts, corev1.VolumeMount{ - Name: rteKubeletDirVolumeName, - ReadOnly: true, - MountPath: filepath.Join("/", rteKubeletDirVolumeName), - }) - } + rteContainerVolumeMounts = append(rteContainerVolumeMounts, corev1.VolumeMount{ + Name: rteKubeletDirVolumeName, + ReadOnly: true, + MountPath: filepath.Join("/", rteKubeletDirVolumeName), + }) } flags := flagcodec.ParseArgvKeyValue(cntSpec.Args)