You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_, _=fmt.Fprintln(o.ErrOut, `Warning: Non-root user is configured for the entire target Pod, and some capabilities granted by debug profile may not work. Please consider using "--custom" with a custom profile that specifies "securityContext.runAsUser: 0".`)
666
+
}
667
+
627
668
// generateDebugContainer returns a debugging pod and an EphemeralContainer suitable for use as a debug container
kube::test::if_has_string "${output_message}"'Warning: Non-root user is configured for the entire target Pod, and some capabilities granted by debug profile may not work. Please consider using "--custom" with a custom profile that specifies "securityContext.runAsUser: 0".'
677
+
# Clean up
678
+
kubectl delete pod target "${kube_flags[@]:?}"
679
+
680
+
### Non-root Pod Troubleshooting by pod copy
681
+
# Pre-Condition: Non-root Pod "busybox" is created
kube::test::if_has_string "${output_message}"'Warning: Non-root user is configured for the entire target Pod, and some capabilities granted by debug profile may not work. Please consider using "--custom" with a custom profile that specifies "securityContext.runAsUser: 0".'
0 commit comments