issue 8249: disable selinux relabel for backupPod (#8250)

Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
lyndon-li
2024-09-27 11:57:29 -04:00
committed by GitHub
parent aab2140a7c
commit 0ccdc7c6e1
+3
View File
@@ -546,6 +546,9 @@ func (e *csiSnapshotExposer) createBackupPod(
RestartPolicy: corev1.RestartPolicyNever,
SecurityContext: &corev1.PodSecurityContext{
RunAsUser: &userID,
SELinuxOptions: &corev1.SELinuxOptions{
Type: "spc_t",
},
},
},
}