Skip to content

Commit

Permalink
lint: for loop in plateDebugScriptInContainers
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester authored and tekton-robot committed Jan 14, 2025
1 parent b8f92d8 commit 47b776a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pod/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func encodeScript(script string) string {
// placeDebugScriptInContainers inserts debug scripts into containers. It capsules those scripts to files in initContainer,
// then executes those scripts in target containers.
func placeDebugScriptInContainers(containers []corev1.Container, initContainer *corev1.Container) {
for i := range len(containers) {
for i := range containers {
debugInfoVolumeMount := corev1.VolumeMount{
Name: debugInfoVolumeName,
MountPath: filepath.Join(debugInfoDir, strconv.Itoa(i)),
Expand Down

0 comments on commit 47b776a

Please sign in to comment.