From 09afd667d72c62ed667be0f6d09bd4f2ee03baef Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Wed, 30 Oct 2024 17:16:21 +0100 Subject: [PATCH] Remove useless comment seLinuxOptions are copied few lines below during `append()` --- pkg/volume/util/util.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/volume/util/util.go b/pkg/volume/util/util.go index c5ad14d36f2..0173902eb87 100644 --- a/pkg/volume/util/util.go +++ b/pkg/volume/util/util.go @@ -522,7 +522,6 @@ func GetPodVolumeNames(pod *v1.Pod, collectSELinuxOptions bool) (mounts sets.Set if collectSELinuxOptions { effectiveContainerSecurity := securitycontext.DetermineEffectiveSecurityContext(pod, container) if effectiveContainerSecurity != nil { - // No DeepCopy, SELinuxOptions is already a copy of Pod's or container's SELinuxOptions seLinuxOptions = effectiveContainerSecurity.SELinuxOptions } }