set AllowPrivilegeEscalation on container securityContext

This commit is contained in:
Felix Kunde
2021-01-22 12:09:59 +01:00
parent a9b677c957
commit c524f9d652
4 changed files with 26 additions and 21 deletions
+3 -2
View File
@@ -453,8 +453,9 @@ func generateContainer(
VolumeMounts: volumeMounts,
Env: envVars,
SecurityContext: &v1.SecurityContext{
Privileged: &privilegedMode,
ReadOnlyRootFilesystem: util.False(),
AllowPrivilegeEscalation: &privilegedMode,
Privileged: &privilegedMode,
ReadOnlyRootFilesystem: util.False(),
},
}
}