MCPcopy
hub / github.com/kubernetes/kubectl / shareProcessNamespace

Function shareProcessNamespace

pkg/cmd/debug/profiles.go:356–360  ·  view source on GitHub ↗

shareProcessNamespace configures all containers in the pod to share the process namespace.

(p *corev1.Pod)

Source from the content-addressed store, hash-verified

354// shareProcessNamespace configures all containers in the pod to share the
355// process namespace.
356func 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.
363func clearSecurityContext(p *corev1.Pod, containerName string) {

Callers 5

ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85

Calls 1

ToMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…