const podsInitContainerPatch …
const podsSidecarPatch …
func admitPods(ar v1.AdmissionReview) *v1.AdmissionResponse { … }
func mutatePods(ar v1.AdmissionReview) *v1.AdmissionResponse { … }
func mutatePodsSidecar(ar v1.AdmissionReview) *v1.AdmissionResponse { … }
func hasContainer(containers []corev1.Container, containerName string) bool { … }
func applyPodPatch(ar v1.AdmissionReview, shouldPatchPod func(*corev1.Pod) bool, patch string) *v1.AdmissionResponse { … }
func denySpecificAttachment(ar v1.AdmissionReview) *v1.AdmissionResponse { … }