From d13cd58c919a02150344a72887b9267000adc777 Mon Sep 17 00:00:00 2001 From: Siva Kanakala Date: Fri, 13 Dec 2024 09:07:31 +0530 Subject: [PATCH] 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 03688012ba..ec5cca3ed5 100644 --- a/pkg/staticpod/staticpod.go +++ b/pkg/staticpod/staticpod.go @@ -338,7 +338,7 @@ func addVolumes(p *v1.Pod, src []string, volume typeVolume) { func addExtraMounts(p *v1.Pod, extraMounts []string) { for i, rawMount := range extraMounts { - var sourceType v1.HostPathType = v1.HostPathUnset // Reset sourceType for each mount + var sourceType v1.HostPathType mount := strings.Split(rawMount, ":") var ro bool switch len(mount) {