From 2bc648d866554be0482bf2e1ed5b706101ec2c60 Mon Sep 17 00:00:00 2001 From: Siva Kanakala Date: Sat, 11 Jan 2025 04:58:50 +0530 Subject: [PATCH] fix-extramount-type (#7423) * fix-extramount-type --- pkg/staticpod/staticpod.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/staticpod/staticpod.go b/pkg/staticpod/staticpod.go index ec687f91e5..ec5cca3ed5 100644 --- a/pkg/staticpod/staticpod.go +++ b/pkg/staticpod/staticpod.go @@ -336,9 +336,9 @@ func addVolumes(p *v1.Pod, src []string, volume typeVolume) { } func addExtraMounts(p *v1.Pod, extraMounts []string) { - var sourceType v1.HostPathType for i, rawMount := range extraMounts { + var sourceType v1.HostPathType mount := strings.Split(rawMount, ":") var ro bool switch len(mount) {