set allowPrivilegeEscalation for deployment templates

This commit is contained in:
Felix Kunde
2021-01-25 10:18:09 +01:00
parent 4a88f00a3f
commit d543dbed5d
5 changed files with 26 additions and 8 deletions
+3
View File
@@ -280,6 +280,9 @@ func (c *Cluster) generateConnectionPoolerPodTemplate(role PostgresRole) (
},
},
},
SecurityContext: &v1.SecurityContext{
AllowPrivilegeEscalation: util.False(),
},
}
podTemplate := &v1.PodTemplateSpec{