shareProcessNamespace configures all containers in the pod to share the process namespace.
(p *corev1.Pod)
| 354 | // shareProcessNamespace configures all containers in the pod to share the |
| 355 | // process namespace. |
| 356 | func shareProcessNamespace(p *corev1.Pod) { |
| 357 | if p.Spec.ShareProcessNamespace == nil { |
| 358 | p.Spec.ShareProcessNamespace = ptr.To(true) |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | // clearSecurityContext clears the security context for the container. |
| 363 | func clearSecurityContext(p *corev1.Pod, containerName string) { |