MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / getPodSecurityContext

Function getPodSecurityContext

internal/cmd/plugin/fio/fio.go:188–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186}
187
188func getPodSecurityContext() *corev1.PodSecurityContext {
189 if utils.HaveSecurityContextConstraints() {
190 return &corev1.PodSecurityContext{}
191 }
192 runAs := int64(10001)
193 return &corev1.PodSecurityContext{
194 FSGroup: &runAs,
195 }
196}
197
198// createFioDeployment creates spec of deployment.
199func (cmd *fioCommand) generateFioDeployment(deploymentName string) *appsv1.Deployment {

Callers 1

generateFioDeploymentMethod · 0.85

Calls 1

Tested by

no test coverage detected