()
| 186 | } |
| 187 | |
| 188 | func 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. |
| 199 | func (cmd *fioCommand) generateFioDeployment(deploymentName string) *appsv1.Deployment { |
no test coverage detected