You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Normal SELinuxLabelConflict SELinuxLabel ":::s0:c98,c99" conflicts with pod pod1 that uses the same volume as this pod with SELinuxLabel ":::s0:c1,c2". If both pods land on the same node, only one of them may access the volume.`,
222
225
},
223
226
},
227
+
{
228
+
name: "existing pod with Recursive policy does not generate conflicts",
label: "", // Label is cleared with the Recursive policy
287
+
changePolicy: v1.SELinuxChangePolicyRecursive,
288
+
csiDriver: "ebs.csi.aws.com", // The PV is a fake EBS volume
289
+
},
290
+
},
291
+
expectedEvents: []string{
292
+
`Normal SELinuxChangePolicyConflict SELinuxChangePolicy "Recursive" conflicts with pod pod2 that uses the same volume as this pod with SELinuxChangePolicy "MountOption". If both pods land on the same node, only one of them may access the volume.`,
293
+
`Normal SELinuxChangePolicyConflict SELinuxChangePolicy "MountOption" conflicts with pod pod1 that uses the same volume as this pod with SELinuxChangePolicy "Recursive". If both pods land on the same node, only one of them may access the volume.`,
294
+
},
295
+
},
224
296
{
225
297
name: "existing pod with PVC generates conflict, the other pod doesn't exist",
0 commit comments