Remove useless comment

seLinuxOptions are copied few lines below during `append()`
This commit is contained in:
Jan Safranek 2024-10-30 17:16:21 +01:00
parent d7daa688c9
commit 09afd667d7

View File

@ -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
}
}