set AllowPrivilegeEscalation on container securityContext (#1326)

This commit is contained in:
Felix Kunde
2021-01-22 14:06:19 +01:00
committed by GitHub
parent a9b677c957
commit 4ea0b5f432
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(),
},
}
}