We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8f92d8 commit 47b776aCopy full SHA for 47b776a
pkg/pod/script.go
@@ -215,7 +215,7 @@ func encodeScript(script string) string {
215
// placeDebugScriptInContainers inserts debug scripts into containers. It capsules those scripts to files in initContainer,
216
// then executes those scripts in target containers.
217
func placeDebugScriptInContainers(containers []corev1.Container, initContainer *corev1.Container) {
218
- for i := range len(containers) {
+ for i := range containers {
219
debugInfoVolumeMount := corev1.VolumeMount{
220
Name: debugInfoVolumeName,
221
MountPath: filepath.Join(debugInfoDir, strconv.Itoa(i)),
0 commit comments